Explorar o código

storage/reflink: update _size during volatile volume stop

Rusty Bird %!s(int64=4) %!d(string=hai) anos
pai
achega
b98c1814ee
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      qubes/storage/reflink.py

+ 2 - 0
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