From dcfc47fefe5e1ac22cf2bf5b61e771362897de8a Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Fri, 2 Sep 2016 19:55:54 +0200 Subject: [PATCH] qvm-block extends volumes to NEW_SIZE --- doc/manpages/qvm-block.rst | 4 ++-- qubes/tools/qubes_lvm.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/manpages/qvm-block.rst b/doc/manpages/qvm-block.rst index 4cc2b2fc..fb340d24 100644 --- a/doc/manpages/qvm-block.rst +++ b/doc/manpages/qvm-block.rst @@ -88,9 +88,9 @@ aliases: d, dt extend ^^^^^^ -| :command:`qvm-block extend` [-h] [--verbose] [--quiet] *POOL_NAME:VOLUME_ID* *SIZE* +| :command:`qvm-block extend` [-h] [--verbose] [--quiet] *POOL_NAME:VOLUME_ID* *NEW_SIZE* -Extends the volume with *POOL_NAME:VOLUME_ID* BY *SIZE* bytes +Extend the volume with *POOL_NAME:VOLUME_ID* TO *NEW_SIZE* revert ^^^^^^ diff --git a/qubes/tools/qubes_lvm.py b/qubes/tools/qubes_lvm.py index 28295945..8ad9627c 100644 --- a/qubes/tools/qubes_lvm.py +++ b/qubes/tools/qubes_lvm.py @@ -129,12 +129,12 @@ def rename_volume(old_name, new_name): def extend_volume(args): ''' Extends an existing lvm volume. Note this works on any lvm volume not - only thin volumes. + only on thin volumes. ''' vid = args.name size = int(args.size) / (1000 * 1000) log.debug("Extending LVM %s to %s", vid, size) - cmd = ["lvextend", "-L+%s" % size, vid] + cmd = ["lvextend", "-L%s" % size, vid] log.debug(cmd) retcode = subprocess.call(cmd) if retcode != 0: