From 8b46b545c6809a1ff983efd07843379b4913c582 Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Thu, 28 Nov 2002 15:27:29 +0000 Subject: [PATCH] Corrected lvcreate synopsis. Added --ignorelockingflag to synopsis where missing. --- tools/commands.h | 111 +++++++++++++++++++++++++++++------------------ 1 file changed, 68 insertions(+), 43 deletions(-) diff --git a/tools/commands.h b/tools/commands.h index b2e4868c4..cddc11b0d 100644 --- a/tools/commands.h +++ b/tools/commands.h @@ -42,7 +42,7 @@ xx(lvactivate, "Activate logical volume on given partition(s)", "lvactivate " "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-v/--verbose]\n" "Logical Volume(s)\n") ***********/ @@ -54,7 +54,7 @@ xx(lvchange, "\t[-a/--available y/n]\n" "\t[-C/--contiguous y/n]\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[--ignorelockingfailure]\n" "\t[-M/--persistent y/n] [--minor minor]\n" "\t[-P/--partial] " "\n" @@ -65,15 +65,14 @@ xx(lvchange, "\tLogicalVolume[Path] [LogicalVolume[Path]...]\n", autobackup_ARG, available_ARG, contiguous_ARG, - minor_ARG, persistent_ARG, partial_ARG, - permission_ARG, readahead_ARG, test_ARG, - ignorelockingfailure_ARG) + ignorelockingfailure_ARG, minor_ARG, persistent_ARG, partial_ARG, + permission_ARG, readahead_ARG, test_ARG) xx(lvcreate, "Create a logical volume", + "Original logical volume synopsis:\n\n" "lvcreate " "\n" "\t[-A|--autobackup {y|n}]\n" - "\t[-c|--chunksize]\n" "\t[-C|--contiguous {y|n}]\n" "\t[-d|--debug]\n" "\t[-h|--help]\n" @@ -84,12 +83,31 @@ xx(lvcreate, "\t[-n|--name LogicalVolumeName]\n" "\t[-p|--permission {r|rw}]\n" "\t[-r|--readahead ReadAheadSectors]\n" - "\t[-s|--snapshot]\n" "\t[-t|--test]\n" "\t[-v|--verbose]\n" "\t[-Z|--zero {y|n}]\n" "\t[--version]\n" - "\tVolumeGroupName [PhysicalVolumePath...]\n\n", + "\tVolumeGroupName [PhysicalVolumePath...]\n\n\n" + + "Snapshot logical volume synopsis:\n\n" + "lvcreate " "\n" + "\t-s|--snapshot\n" + "\t[-c|--chunksize]\n" + "\t[-A|--autobackup {y|n}]\n" + "\t[-C|--contiguous {y|n}]\n" + "\t[-d|--debug]\n" + "\t[-h|--help]\n" + "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n" + "\t{-l|--extents LogicalExtentsNumber |\n" + "\t -L|--size LogicalVolumeSize[kKmMgGtT]}\n" + "\t[-M|--persistent {y|n}] [--minor minor]\n" + "\t[-n|--name LogicalVolumeName]\n" + "\t[-p|--permission {r|rw}]\n" + "\t[-r|--readahead ReadAheadSectors]\n" + "\t[-t|--test]\n" + "\t[-v|--verbose]\n" + "\t[--version]\n" + "\tOriginalLogicalVolume[Path] [PhysicalVolumePath...]\n\n", autobackup_ARG, chunksize_ARG, contiguous_ARG, extents_ARG, minor_ARG, name_ARG, permission_ARG, persistent_ARG, readahead_ARG, size_ARG, @@ -100,21 +118,21 @@ xx(lvdisplay, "lvdisplay\n" "\t[-c/--colon]\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" + "\t[--ignorelockingfailure]\n" "\t[-m/--maps]\n" "\t[-P/--partial] " "\n" "\t[-v/--verbose]\n" "\tLogicalVolume[Path] [LogicalVolume[Path]...]\n", - colon_ARG, disk_ARG, maps_ARG, partial_ARG, - ignorelockingfailure_ARG) + colon_ARG, disk_ARG, ignorelockingfailure_ARG, maps_ARG, partial_ARG) xx(lvextend, "Add space to a logical volume", "lvextend\n" "\t[-A/--autobackup y/n]\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n" "\t{-l/--extents [+]LogicalExtentsNumber |\n" "\t -L/--size [+]LogicalVolumeSize[kKmMgGtT]}\n" @@ -129,7 +147,7 @@ xx(lvmchange, "With the device mapper, this is obsolete and does nothing.", "lvmchange\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-R/--reset]\n" "\t[-v/--verbose]\n", @@ -139,7 +157,7 @@ xx(lvmdiskscan, "List devices that may be used as physical volumes", "lvmdiskscan\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-l/--lvmpartition]\n", lvmpartition_ARG) @@ -148,7 +166,7 @@ xx(lvmsadc, "Collect activity data", "lvmsadc\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-v/--verbose]\n" "\t[LogFilePath]\n" ) @@ -157,12 +175,12 @@ xx(lvmsar, "lvmsar\n" "\t[-d/--debug]\n" "\t[-f/--full]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-s/--stdin]\n" "\t[-v/--verbose]\n" "\tLogFilePath\n", - full_ARG, stdin_ARG) + full_ARG, stdin_ARG) xx(lvreduce, "Reduce the size of a logical volume", @@ -170,7 +188,7 @@ xx(lvreduce, "\t[-A/--autobackup y/n]\n" "\t[-d/--debug]\n" "\t[-f/--force]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t{-l/--extents [-]LogicalExtentsNumber |\n" "\t -L/--size [-]LogicalVolumeSize[kKmMgGtT]}\n" "\t[-t/--test]\n" @@ -186,7 +204,7 @@ xx(lvremove, "\t[-A/--autobackup y/n]\n" "\t[-d/--debug]\n" "\t[-f/--force]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-t/--test]\n" "\t[-v/--verbose]\n" "\tLogicalVolume[Path] [LogicalVolume[Path]...]\n", @@ -212,7 +230,7 @@ xx(lvresize, "lvresize\n" "\t[-A/--autobackup y/n]\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-i|--stripes Stripes [-I|--stripesize StripeSize]]\n" "\t{-l/--extents [+/-]LogicalExtentsNumber |\n" "\t -L/--size [+/-]LogicalVolumeSize[kKmMgGtT]}\n" @@ -229,25 +247,26 @@ xx(lvscan, "\t[-b|--blockdevice] " "\n" "\t[-d|--debug] " "\n" "\t[-h|--help] " "\n" + "\t[--ignorelockingfailure]\n" "\t[-P|--partial] " "\n" "\t[-v|--verbose] " "\n" "\t[--version]\n", - blockdevice_ARG, disk_ARG, partial_ARG, ignorelockingfailure_ARG); + blockdevice_ARG, disk_ARG, ignorelockingfailure_ARG, partial_ARG) xx(pvchange, "Change attributes of physical volume(s)", "pvchange\n" "\t[-A/--autobackup y/n]\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-v/--verbose]\n" "\t[-a/--all]\n" "\t[-t|--test]\n" "\t[-x/--allocatable y/n]\n" "\t[PhysicalVolumePath...]\n", - all_ARG, autobackup_ARG, allocatable_ARG, allocation_ARG, test_ARG) + all_ARG, allocatable_ARG, allocation_ARG, autobackup_ARG, test_ARG) xx(pvcreate, "Initialize physical volume(s) for use by LVM", @@ -295,13 +314,14 @@ xx(pvdisplay, "pvdisplay\n" "\t[-c/--colon]\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" + "\t[--ignorelockingfailure]\n" "\t[-m/--maps]\n" "\t[-s/--short]\n" "\t[-v/--verbose]\n" "\tPhysicalVolumePath [PhysicalVolumePath...]\n", - colon_ARG, maps_ARG, short_ARG, ignorelockingfailure_ARG) + colon_ARG, ignorelockingfailure_ARG, maps_ARG, short_ARG) xx(pvmove, "Move extents from one physical volume to another", @@ -317,7 +337,7 @@ xx(pvmove, "SourcePhysicalVolume[:PhysicalExtent[-PhysicalExtent]...]}\n\t" "[DestinationPhysicalVolume[:PhysicalExtent[-PhysicalExtent]...]...]\n", - autobackup_ARG, force_ARG, name_ARG, test_ARG) + autobackup_ARG, force_ARG, name_ARG, test_ARG) xx(pvremove, "Remove LVM label(s) from physical volume(s)", @@ -355,14 +375,15 @@ xx(pvscan, "\t[-d|--debug] " "\n" "\t{-e|--exported | -n/--novolumegroup} " "\n" "\t[-h|--help]" "\n" + "\t[--ignorelockingfailure]\n" "\t[-P|--partial] " "\n" "\t[-s|--short] " "\n" "\t[-u|--uuid] " "\n" "\t[-v|--verbose] " "\n" "\t[--version]\n", - exported_ARG, novolumegroup_ARG, partial_ARG, short_ARG, uuid_ARG, - ignorelockingfailure_ARG) + exported_ARG, ignorelockingfailure_ARG, novolumegroup_ARG, partial_ARG, + short_ARG, uuid_ARG) xx(vgcfgbackup, "Backup volume group configuration(s)", @@ -370,11 +391,13 @@ xx(vgcfgbackup, "\t[-d|--debug] " "\n" "\t[-f|--file filename] " "\n" "\t[-h|--help] " "\n" + "\t[--ignorelockingfailure]\n" "\t[-P|--partial] " "\n" "\t[-v|--verbose]" "\n" "\t[-V|--version] " "\n" "\t[VolumeGroupName...]\n", - file_ARG, partial_ARG, ignorelockingfailure_ARG) + + file_ARG, ignorelockingfailure_ARG, partial_ARG) xx(vgcfgrestore, "Restore volume group configuration", @@ -399,6 +422,7 @@ xx(vgchange, "\t[-P|--partial] " "\n" "\t[-d|--debug] " "\n" "\t[-h|--help] " "\n" + "\t[--ignorelockingfailure]\n" "\t[-t|--test]" "\n" "\t[-v|--verbose] " "\n" "\t[--version]" "\n" @@ -407,15 +431,14 @@ xx(vgchange, "\t -l|--logicalvolume MaxLogicalVolumes}" "\n" "\t[VolumeGroupName...]\n", - autobackup_ARG, available_ARG, logicalvolume_ARG, partial_ARG, - resizeable_ARG, resizable_ARG, allocation_ARG, - test_ARG, ignorelockingfailure_ARG) + autobackup_ARG, available_ARG, ignorelockingfailure_ARG, logicalvolume_ARG, + partial_ARG, resizeable_ARG, resizable_ARG, allocation_ARG, test_ARG) xx(vgck, "Check the consistency of volume group(s)", "vgck " "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-v/--verbose]\n" "\t[VolumeGroupName...]\n" ) @@ -466,8 +489,8 @@ xx(vgdisplay, "\t[--version]" "\n" "\t[VolumeGroupName...] ]\n", - activevolumegroups_ARG, colon_ARG, disk_ARG, short_ARG, partial_ARG, - ignorelockingfailure_ARG) + activevolumegroups_ARG, colon_ARG, disk_ARG, ignorelockingfailure_ARG, + short_ARG, partial_ARG) xx(vgexport, "Unregister volume group(s) from the system", @@ -486,7 +509,7 @@ xx(vgextend, "vgextend\n" "\t[-A/--autobackup y/n]\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-t/--test]\n" "\t[-v/--verbose]\n" "\tVolumeGroupName PhysicalDevicePath [PhysicalDevicePath...]\n", @@ -511,7 +534,7 @@ xx(vgmerge, "vgmerge\n" "\t[-A/--autobackup y/n]\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-l/--list]\n" "\t[-t/--test]\n" "\t[-v/--verbose]\n" @@ -523,7 +546,7 @@ xx(vgmknodes, "Create the special files for volume group devices in /dev", "vgmknodes\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-v/--verbose]\n" "\t[VolumeGroupName...]\n" ) @@ -533,7 +556,7 @@ xx(vgreduce, "\t[-a/--all]\n" "\t[-A/--autobackup y/n]\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-t/--test]\n" "\t[-v/--verbose]\n" "\tVolumeGroupName\n" @@ -545,7 +568,7 @@ xx(vgremove, "Remove volume group(s)", "vgremove\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-t/--test]\n" "\t[-v/--verbose]\n" "\tVolumeGroupName [VolumeGroupName...]\n", @@ -557,7 +580,7 @@ xx(vgrename, "vgrename\n" "\t[-A/--autobackup y/n]\n" "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" "\t[-t/--test]\n" "\t[-v/--verbose]\n" "\tOldVolumeGroupPath NewVolumeGroupPath |\n" @@ -569,10 +592,12 @@ xx(vgscan, "Search for all volume groups", "vgscan " "\t[-d/--debug]\n" - "\t[-h/-?/--help]\n" + "\t[-h/--help]\n" + "\t[--ignorelockingfailure]\n" "\t[-P/--partial] " "\n" "\t[-v/--verbose]\n" , - partial_ARG, ignorelockingfailure_ARG) + + ignorelockingfailure_ARG, partial_ARG) xx(vgsplit, "Move physical volumes into a new volume group", -- 2.43.5