storage/reflink: update _size during volatile volume stop

This commit is contained in:
Rusty Bird 2020-07-07 15:39:05 +00:00
parent d0f619d3c6
commit b98c1814ee
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

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