Merge remote-tracking branch 'origin/pr/320'
* origin/pr/320: storage/lvm: don't try to resize non-existing lvm volumes storage/lvm: update volume.size attribute on resize
This commit is contained in:
commit
135eda0582
@ -662,9 +662,11 @@ class ThinVolume(qubes.storage.Volume):
|
||||
os.path.exists('/dev/' + self._vid_import):
|
||||
cmd = ['extend', self._vid_import, str(size)]
|
||||
yield from qubes_lvm_coro(cmd, self.log)
|
||||
elif self.save_on_stop or not self.snap_on_start:
|
||||
elif self.save_on_stop and not self.snap_on_start:
|
||||
cmd = ['extend', self._vid_current, str(size)]
|
||||
yield from qubes_lvm_coro(cmd, self.log)
|
||||
|
||||
self._size = size
|
||||
yield from reset_cache_coro()
|
||||
|
||||
@asyncio.coroutine
|
||||
|
Loading…
Reference in New Issue
Block a user