From a833692c6393861731432a7ef27ef2de40595228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 6 Aug 2017 12:47:58 +0200 Subject: [PATCH] storage/lvm: extend volume snapshot of running VM too Extend both backing volume as well as current snapshot, so the increased size is visible immediately to the user. Fixes QubesOS/qubes-issues#2982 --- qubes/storage/lvm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubes/storage/lvm.py b/qubes/storage/lvm.py index 5aff6d35..1beaa639 100644 --- a/qubes/storage/lvm.py +++ b/qubes/storage/lvm.py @@ -377,6 +377,9 @@ class ThinVolume(qubes.storage.Volume): cmd = ['extend', self.vid, str(size)] qubes_lvm(cmd, self.log) + if self.is_dirty(): + cmd = ['extend', self._vid_snap, str(size)] + qubes_lvm(cmd, self.log) reset_cache() def _snapshot(self):