storage/reflink: pool.setup_check -> pool._setup_check
This commit is contained in:
parent
686f66bb85
commit
90f25890cf
@ -61,14 +61,14 @@ class ReflinkPool(qubes.storage.Pool):
|
||||
def __init__(self, dir_path, setup_check='yes', revisions_to_keep=1,
|
||||
**kwargs):
|
||||
super().__init__(revisions_to_keep=revisions_to_keep, **kwargs)
|
||||
self._setup_check = qubes.property.bool(None, None, setup_check)
|
||||
self._volumes = {}
|
||||
self.dir_path = os.path.abspath(dir_path)
|
||||
self.setup_check = qubes.property.bool(None, None, setup_check)
|
||||
|
||||
@_coroutinized
|
||||
def setup(self):
|
||||
created = _make_dir(self.dir_path)
|
||||
if self.setup_check and not is_supported(self.dir_path):
|
||||
if self._setup_check and not is_supported(self.dir_path):
|
||||
if created:
|
||||
_remove_empty_dir(self.dir_path)
|
||||
raise qubes.storage.StoragePoolException(
|
||||
|
Loading…
Reference in New Issue
Block a user