storage/reflink: update _size during volatile volume stop
This commit is contained in:
parent
d0f619d3c6
commit
b98c1814ee
@ -226,6 +226,8 @@ class ReflinkVolume(qubes.storage.Volume):
|
|||||||
if self.save_on_stop:
|
if self.save_on_stop:
|
||||||
self._commit(self._path_dirty)
|
self._commit(self._path_dirty)
|
||||||
else:
|
else:
|
||||||
|
if not self.snap_on_start:
|
||||||
|
self._get_size() # preserve manual resize of image
|
||||||
_remove_file(self._path_dirty)
|
_remove_file(self._path_dirty)
|
||||||
_remove_file(self._path_clean)
|
_remove_file(self._path_clean)
|
||||||
return self
|
return self
|
||||||
|
Loading…
Reference in New Issue
Block a user