diff --git a/qubes/storage/file.py b/qubes/storage/file.py index a679a466..6e1c9be0 100644 --- a/qubes/storage/file.py +++ b/qubes/storage/file.py @@ -216,7 +216,8 @@ class FilePool(Pool): are stored """ # FIX Remove this if we drop the file backend - import qubes.vm # nopep8 + import qubes.vm.templatevm # nopep8 + import qubes.vm.dispvm # nopep8 if isinstance(vm, qubes.vm.templatevm.TemplateVM): subdir = 'vm-templates' elif isinstance(vm, qubes.vm.dispvm.DispVM): @@ -438,6 +439,7 @@ class VolatileFile(SizeMixIn): self.path = new_path self.vid = self.path + def create_sparse_file(path, size): ''' Create an empty sparse file ''' if os.path.exists(path):