From e26932a81ab54d2ca2b52b13707bed9547f88ef4 Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Tue, 21 Jun 2016 14:41:14 +0200 Subject: [PATCH] Fix bug in FilesPool.target_dir() --- qubes/storage/file.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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):