From b98c1814ee32c5277ea24b2105e00913b14e81bf Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Tue, 7 Jul 2020 15:39:05 +0000 Subject: [PATCH] storage/reflink: update _size during volatile volume stop --- qubes/storage/reflink.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/storage/reflink.py b/qubes/storage/reflink.py index 52ea6787..806a2fae 100644 --- a/qubes/storage/reflink.py +++ b/qubes/storage/reflink.py @@ -226,6 +226,8 @@ class ReflinkVolume(qubes.storage.Volume): if self.save_on_stop: self._commit(self._path_dirty) else: + if not self.snap_on_start: + self._get_size() # preserve manual resize of image _remove_file(self._path_dirty) _remove_file(self._path_clean) return self