storage/reflink: comment on _get_size() use in start()

This commit is contained in:
Rusty Bird 2020-02-05 17:26:43 +00:00
parent 749ce477df
commit 21971d6d0a
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -215,6 +215,9 @@ class ReflinkVolume(qubes.storage.Volume):
if self.snap_on_start or self.save_on_stop:
_copy_file(self._path_clean, self._path_dirty)
else:
# Preferably use the size of a leftover image, in case
# the volume was previously resized - but then a crash
# prevented qubes.xml serialization of the new size.
_create_sparse_file(self._path_dirty, self._get_size())
return self