storage/reflink: update snap_on_start volume size in start()

This commit is contained in:
Rusty Bird 2019-06-15 16:03:41 +00:00
parent b6c4f8456f
commit c43df968d5
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -198,6 +198,7 @@ class ReflinkVolume(qubes.storage.Volume):
if self.snap_on_start:
# pylint: disable=protected-access
_copy_file(self.source._path_clean, self._path_clean)
self.size = os.path.getsize(self._path_clean)
if self.snap_on_start or self.save_on_stop:
_copy_file(self._path_clean, self._path_dirty)
else: