storage/lvm: fix size units on resize
lvextend uses MiB, not MB.
This commit is contained in:
parent
3a5e8482c0
commit
6091bbbe88
@ -487,7 +487,7 @@ def qubes_lvm(cmd, log=logging.getLogger('qubes.storage.lvm')):
|
||||
lvm_cmd = ['lvcreate', '-T', cmd[1], '-kn', '-ay', '-n', cmd[2], '-V',
|
||||
str(cmd[3]) + 'B']
|
||||
elif action == 'extend':
|
||||
size = int(cmd[2]) / (1000 * 1000)
|
||||
size = int(cmd[2]) / (1024 * 1024)
|
||||
lvm_cmd = ["lvextend", "-L%s" % size, cmd[1]]
|
||||
elif action == 'activate':
|
||||
lvm_cmd = ['lvchange', '-ay', cmd[1]]
|
||||
|
Loading…
Reference in New Issue
Block a user