diff --git a/qubes/config.py b/qubes/config.py index 9984238d..636b0b07 100644 --- a/qubes/config.py +++ b/qubes/config.py @@ -83,7 +83,9 @@ defaults = { 'private_img_size': 2*1024*1024*1024, 'root_img_size': 10*1024*1024*1024, - 'pool_config': {'dir_path': '/var/lib/qubes/', 'driver': 'xen'}, + 'pool_config': {'dir_path': '/var/lib/qubes/', + 'driver': 'xen', + 'name': 'default'}, # how long (in sec) to wait for VMs to shutdown, # before killing them (when used qvm-run with --wait option), diff --git a/qubes/storage/__init__.py b/qubes/storage/__init__.py index cea2360a..ccd30ad8 100644 --- a/qubes/storage/__init__.py +++ b/qubes/storage/__init__.py @@ -352,11 +352,13 @@ def get_disk_usage(path): return ret class Pool(object): - def __init__(self, vm, dir_path): + def __init__(self, vm, dir_path, name): assert vm is not None assert dir_path is not None + assert name self.vm = vm + self.name = name self.dir_path = os.path.normpath(dir_path) self.create_dir_if_not_exists(self.dir_path)