1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Add -V as short form of --virtualsize in lvcreate.

This commit is contained in:
Alasdair Kergon 2011-08-17 15:15:36 +00:00
parent 4903b85d23
commit f1c2a5af58
4 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.88 - Version 2.02.88 -
================================== ==================================
Add -V as short form of --virtualsize in lvcreate.
Fix make clean not to remove Makefile. (2.02.87) Fix make clean not to remove Makefile. (2.02.87)
Version 2.02.87 - 12th August 2011 Version 2.02.87 - 12th August 2011

View File

@ -36,7 +36,7 @@ VolumeGroupName [PhysicalVolumePath[:PE[-PE]]...]
{{\-s|\-\-snapshot} {{\-s|\-\-snapshot}
OriginalLogicalVolumePath | OriginalLogicalVolumePath |
[\-s|\-\-snapshot] [\-s|\-\-snapshot]
VolumeGroupName \-\-virtualsize VirtualSize} VolumeGroupName \-V|\-\-virtualsize VirtualSize}
.SH DESCRIPTION .SH DESCRIPTION
lvcreate creates a new logical volume in a volume group ( see lvcreate creates a new logical volume in a volume group ( see
.B vgcreate(8), vgchange(8) .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 commandline switch alias is available for the desired type, as is the case
with "error", "zero", "raid4", "raid5", or "raid6". with "error", "zero", "raid4", "raid5", or "raid6".
.TP .TP
.I \-\-virtualsize VirtualSize .I -V, \-\-virtualsize VirtualSize
Create a sparse device of the given size (in MB by default) using a snapshot. 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. Anything written to the device will be returned when reading from it.
Reading from other areas of the device will return blocks of zeros. Reading from other areas of the device will return blocks of zeros.

View File

@ -66,7 +66,6 @@ arg(rows_ARG, '\0', "rows", NULL, 0)
arg(dataalignment_ARG, '\0', "dataalignment", size_kb_arg, 0) arg(dataalignment_ARG, '\0', "dataalignment", size_kb_arg, 0)
arg(dataalignmentoffset_ARG, '\0', "dataalignmentoffset", size_kb_arg, 0) arg(dataalignmentoffset_ARG, '\0', "dataalignmentoffset", size_kb_arg, 0)
arg(virtualoriginsize_ARG, '\0', "virtualoriginsize", size_mb_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(noudevsync_ARG, '\0', "noudevsync", NULL, 0)
arg(poll_ARG, '\0', "poll", yes_no_arg, 0) arg(poll_ARG, '\0', "poll", yes_no_arg, 0)
arg(stripes_long_ARG, '\0', "stripes", int_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(uuidlist_ARG, 'U', "uuidlist", NULL, 0)
arg(verbose_ARG, 'v', "verbose", NULL, ARG_COUNTABLE) arg(verbose_ARG, 'v', "verbose", NULL, ARG_COUNTABLE)
arg(volumegroup_ARG, 'V', "volumegroup", NULL, 0) 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(allocatable_ARG, 'x', "allocatable", yes_no_arg, 0)
arg(resizeable_ARG, 'x', "resizeable", yes_no_arg, 0) arg(resizeable_ARG, 'x', "resizeable", yes_no_arg, 0)
arg(yes_ARG, 'y', "yes", NULL, 0) arg(yes_ARG, 'y', "yes", NULL, 0)

View File

@ -175,7 +175,7 @@ xx(lvcreate,
"lvcreate \n" "lvcreate \n"
"\t{ {-s|--snapshot} OriginalLogicalVolume[Path] |\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[-c|--chunksize]\n"
"\t[-A|--autobackup {y|n}]\n" "\t[-A|--autobackup {y|n}]\n"
"\t[--addtag Tag]\n" "\t[--addtag Tag]\n"