Fix bug in FilesPool.target_dir()
This commit is contained in:
parent
7081bd433a
commit
e26932a81a
@ -216,7 +216,8 @@ class FilePool(Pool):
|
|||||||
are stored
|
are stored
|
||||||
"""
|
"""
|
||||||
# FIX Remove this if we drop the file backend
|
# 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):
|
if isinstance(vm, qubes.vm.templatevm.TemplateVM):
|
||||||
subdir = 'vm-templates'
|
subdir = 'vm-templates'
|
||||||
elif isinstance(vm, qubes.vm.dispvm.DispVM):
|
elif isinstance(vm, qubes.vm.dispvm.DispVM):
|
||||||
@ -438,6 +439,7 @@ class VolatileFile(SizeMixIn):
|
|||||||
self.path = new_path
|
self.path = new_path
|
||||||
self.vid = self.path
|
self.vid = self.path
|
||||||
|
|
||||||
|
|
||||||
def create_sparse_file(path, size):
|
def create_sparse_file(path, size):
|
||||||
''' Create an empty sparse file '''
|
''' Create an empty sparse file '''
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
|
Loading…
Reference in New Issue
Block a user