Fix a few typo bugs in qubes.storage.lvm
This commit is contained in:
parent
dcfc47fefe
commit
46eb4a72dd
@ -183,8 +183,8 @@ class ThinPool(qubes.storage.Pool):
|
|||||||
|
|
||||||
if not volume._is_volatile:
|
if not volume._is_volatile:
|
||||||
volume._vid_snap = volume.vid + '-snap'
|
volume._vid_snap = volume.vid + '-snap'
|
||||||
return volume
|
|
||||||
reset_cache()
|
reset_cache()
|
||||||
|
return volume
|
||||||
|
|
||||||
def revert(self, volume, revision=None):
|
def revert(self, volume, revision=None):
|
||||||
old_path = volume.path + '-back'
|
old_path = volume.path + '-back'
|
||||||
@ -212,7 +212,7 @@ class ThinPool(qubes.storage.Pool):
|
|||||||
raise qubes.storage.StoragePoolException(
|
raise qubes.storage.StoragePoolException(
|
||||||
'For your own safety, shrinking of %s is'
|
'For your own safety, shrinking of %s is'
|
||||||
' disabled. If you really know what you'
|
' disabled. If you really know what you'
|
||||||
' are doing, use `truncate` on %s manually.' %
|
' are doing, use `lvresize` on %s manually.' %
|
||||||
(volume.name, volume.vid))
|
(volume.name, volume.vid))
|
||||||
|
|
||||||
cmd = ['extend', volume.vid, str(size)]
|
cmd = ['extend', volume.vid, str(size)]
|
||||||
@ -239,7 +239,7 @@ class ThinPool(qubes.storage.Pool):
|
|||||||
if not self.is_dirty(volume):
|
if not self.is_dirty(volume):
|
||||||
self._snapshot(volume)
|
self._snapshot(volume)
|
||||||
|
|
||||||
reset_cache
|
reset_cache()
|
||||||
return volume
|
return volume
|
||||||
|
|
||||||
def stop(self, volume):
|
def stop(self, volume):
|
||||||
|
Loading…
Reference in New Issue
Block a user