storage/reflink: pool.setup_check -> pool._setup_check

This commit is contained in:
Rusty Bird 2020-01-17 15:56:50 +00:00
parent 686f66bb85
commit 90f25890cf
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -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(