From: Alasdair Kergon Date: Wed, 17 Aug 2011 15:15:36 +0000 (+0000) Subject: Add -V as short form of --virtualsize in lvcreate. X-Git-Tag: v2_02_91~656 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=f1c2a5af58c908a53aab695fa37a397b0a401133;p=lvm2.git Add -V as short form of --virtualsize in lvcreate. --- diff --git a/WHATS_NEW b/WHATS_NEW index a2976cc18..56778d132 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.88 - ================================== + Add -V as short form of --virtualsize in lvcreate. Fix make clean not to remove Makefile. (2.02.87) Version 2.02.87 - 12th August 2011 diff --git a/man/lvcreate.8.in b/man/lvcreate.8.in index 03d8013c3..da565d07b 100644 --- a/man/lvcreate.8.in +++ b/man/lvcreate.8.in @@ -36,7 +36,7 @@ VolumeGroupName [PhysicalVolumePath[:PE[-PE]]...] {{\-s|\-\-snapshot} OriginalLogicalVolumePath | [\-s|\-\-snapshot] -VolumeGroupName \-\-virtualsize VirtualSize} +VolumeGroupName \-V|\-\-virtualsize VirtualSize} .SH DESCRIPTION lvcreate creates a new logical volume in a volume group ( see .B vgcreate(8), vgchange(8) @@ -205,7 +205,7 @@ commandline switch alias that will enable their use (-s is an alias for commandline switch alias is available for the desired type, as is the case with "error", "zero", "raid4", "raid5", or "raid6". .TP -.I \-\-virtualsize VirtualSize +.I -V, \-\-virtualsize VirtualSize Create a sparse device of the given size (in MB by default) using a snapshot. Anything written to the device will be returned when reading from it. Reading from other areas of the device will return blocks of zeros. diff --git a/tools/args.h b/tools/args.h index ff7514b4f..38449719e 100644 --- a/tools/args.h +++ b/tools/args.h @@ -66,7 +66,6 @@ arg(rows_ARG, '\0', "rows", NULL, 0) arg(dataalignment_ARG, '\0', "dataalignment", size_kb_arg, 0) arg(dataalignmentoffset_ARG, '\0', "dataalignmentoffset", size_kb_arg, 0) arg(virtualoriginsize_ARG, '\0', "virtualoriginsize", size_mb_arg, 0) -arg(virtualsize_ARG, '\0', "virtualsize", size_mb_arg, 0) arg(noudevsync_ARG, '\0', "noudevsync", NULL, 0) arg(poll_ARG, '\0', "poll", yes_no_arg, 0) arg(stripes_long_ARG, '\0', "stripes", int_arg, 0) @@ -139,6 +138,7 @@ arg(uuidstr_ARG, 'u', "uuid", string_arg, 0) arg(uuidlist_ARG, 'U', "uuidlist", NULL, 0) arg(verbose_ARG, 'v', "verbose", NULL, ARG_COUNTABLE) arg(volumegroup_ARG, 'V', "volumegroup", NULL, 0) +arg(virtualsize_ARG, 'V', "virtualsize", size_mb_arg, 0) arg(allocatable_ARG, 'x', "allocatable", yes_no_arg, 0) arg(resizeable_ARG, 'x', "resizeable", yes_no_arg, 0) arg(yes_ARG, 'y', "yes", NULL, 0) diff --git a/tools/commands.h b/tools/commands.h index 4ab810057..b9c983eb0 100644 --- a/tools/commands.h +++ b/tools/commands.h @@ -175,7 +175,7 @@ xx(lvcreate, "lvcreate \n" "\t{ {-s|--snapshot} OriginalLogicalVolume[Path] |\n" - "\t [-s|--snapshot] VolumeGroupName[Path] --virtualsize VirtualSize}\n" + "\t [-s|--snapshot] VolumeGroupName[Path] -V|--virtualsize VirtualSize}\n" "\t[-c|--chunksize]\n" "\t[-A|--autobackup {y|n}]\n" "\t[--addtag Tag]\n"