From ab929baa38f4acf52aced8c8753567b1ca44a6f9 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Sun, 23 Jun 2019 12:47:57 +0000 Subject: [PATCH] Revert "storage/reflink: update volume size in __init__()" Fixed more generally in one of the next commits ("storage/reflink: preferably get volume size from image size"). This reverts commit 9f5d05bfde04746e8d47972b306c924bad080c60. --- qubes/storage/reflink.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/qubes/storage/reflink.py b/qubes/storage/reflink.py index 1ad76e45..5ed21f81 100644 --- a/qubes/storage/reflink.py +++ b/qubes/storage/reflink.py @@ -140,13 +140,6 @@ class ReflinkVolume(qubes.storage.Volume): self._path_import = self._path_vid + '-import.img' self.path = self._path_dirty - # In case the volume was previously resized, but then a crash - # prevented qubesd from serializing the new size to qubes.xml: - for path in (self._path_dirty, self._path_clean): - with suppress(FileNotFoundError): - self.size = os.path.getsize(path) - break - @_unblock def create(self): if self.save_on_stop and not self.snap_on_start: