Skip to content

Commit 86715b2

Browse files
committed
storage: compute reflink path at run
Path needs to be recomputed when called because it may change when revisions_to_keep is changed
1 parent 7c6172e commit 86715b2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

qubes/storage/reflink.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,10 @@ def __init__(self, *args, **kwargs):
176176
self._path_precache = self._path_vid + "-precache.img"
177177
self._path_dirty = self._path_vid + "-dirty.img"
178178
self._path_import = self._path_vid + "-import.img"
179-
self.path = (
180-
self._path_clean if self.snapshots_disabled else self._path_dirty
181-
)
179+
180+
@property
181+
def path(self):
182+
return self._path_clean if self.snapshots_disabled else self._path_dirty
182183

183184
@contextmanager
184185
def _update_precache(self):

0 commit comments

Comments
 (0)