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
This commit is contained in:
parent
8488d5dc72
commit
a833692c63
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user