mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvconvert: update help
Extend help for lvconvert. Use COMMON_OPTS for some common options.
This commit is contained in:
parent
970989655f
commit
b2988a917a
@ -47,7 +47,6 @@ xx(devtypes,
|
||||
"\t[--separator Separator]\n"
|
||||
"\t[--unbuffered]\n"
|
||||
"\t[--unquoted]\n"
|
||||
"\t[-v|--verbose]\n"
|
||||
"\t[--version]" "\n",
|
||||
|
||||
aligned_ARG, binary_ARG, nameprefixes_ARG,
|
||||
@ -154,6 +153,10 @@ xx(lvchange,
|
||||
refresh_ARG, setactivationskip_ARG, syncaction_ARG, sysinit_ARG, test_ARG,
|
||||
writebehind_ARG, writemostly_ARG, zero_ARG)
|
||||
|
||||
#define COMMON_OPTS \
|
||||
"\t[--commandprofile ProfileName] [-d|--debug] [-h|-?|--help]\n" \
|
||||
"\t[--noudevsync] [-t|--test] [-v|--verbose] [--version] [-y|--yes]\n"
|
||||
|
||||
xx(lvconvert,
|
||||
"Change logical volume layout",
|
||||
0,
|
||||
@ -165,88 +168,64 @@ xx(lvconvert,
|
||||
"\t[-R|--regionsize MirrorLogRegionSize]\n"
|
||||
"\t[--alloc AllocationPolicy]\n"
|
||||
"\t[-b|--background]\n"
|
||||
"\t[--commandprofile ProfileName]\n"
|
||||
"\t[-d|--debug]\n"
|
||||
"\t[-f|--force]\n"
|
||||
"\t[-h|-?|--help]\n"
|
||||
"\t[-i|--interval seconds]\n"
|
||||
"\t[--stripes Stripes [-I|--stripesize StripeSize]]\n"
|
||||
"\t[--noudevsync]\n"
|
||||
"\t[-v|--verbose]\n"
|
||||
"\t[-y|--yes]\n"
|
||||
"\t[--version]" "\n"
|
||||
COMMON_OPTS
|
||||
"\tLogicalVolume[Path] [PhysicalVolume[Path]...]\n\n"
|
||||
|
||||
"lvconvert "
|
||||
"[--splitmirrors Images --trackchanges]\n"
|
||||
"[--splitmirrors Images --name SplitLogicalVolumeName]\n"
|
||||
"\t[--commandprofile ProfileName]\n"
|
||||
"\t[--splitmirrors Images --name SplitLogicalVolumeName]\n"
|
||||
COMMON_OPTS
|
||||
"\tLogicalVolume[Path] [SplittablePhysicalVolume[Path]...]\n\n"
|
||||
|
||||
"lvconvert "
|
||||
"--splitsnapshot\n"
|
||||
"\t[--commandprofile ProfileName]\n"
|
||||
"\t[-d|--debug]\n"
|
||||
"\t[-h|-?|--help]\n"
|
||||
"\t[--noudevsync]\n"
|
||||
"\t[-v|--verbose]\n"
|
||||
"\t[--version]" "\n"
|
||||
COMMON_OPTS
|
||||
"\tSnapshotLogicalVolume[Path]\n\n"
|
||||
|
||||
"lvconvert "
|
||||
"[-s|--snapshot]\n"
|
||||
"[--type snapshot|-s|--snapshot]\n"
|
||||
"\t[-c|--chunksize]\n"
|
||||
"\t[--commandprofile ProfileName]\n"
|
||||
"\t[-d|--debug]\n"
|
||||
"\t[-h|-?|--help]\n"
|
||||
"\t[--noudevsync]\n"
|
||||
"\t[-v|--verbose]\n"
|
||||
"\t[-Z|--zero {y|n}]\n"
|
||||
"\t[--version]" "\n"
|
||||
COMMON_OPTS
|
||||
"\tOriginalLogicalVolume[Path] SnapshotLogicalVolume[Path]\n\n"
|
||||
|
||||
"lvconvert "
|
||||
"--merge\n"
|
||||
"\t[-b|--background]\n"
|
||||
"\t[-i|--interval seconds]\n"
|
||||
"\t[--commandprofile ProfileName]\n"
|
||||
"\t[-d|--debug]\n"
|
||||
"\t[-h|-?|--help]\n"
|
||||
"\t[-v|--verbose]\n"
|
||||
COMMON_OPTS
|
||||
"\tLogicalVolume[Path]\n\n"
|
||||
|
||||
"lvconvert "
|
||||
"--thinpool ThinPoolLogicalVolume[Path]\n"
|
||||
"[--type thin[-pool]|-T|--thin]\n"
|
||||
"\t[--thinpool ThinPoolLogicalVolume[Path]]\n"
|
||||
"\t[--chunksize size]\n"
|
||||
"\t[--discards {ignore|nopassdown|passdown}]\n"
|
||||
"\t[--poolmetadataspare {y|n}]\n"
|
||||
"\t[--poolmetadata ThinMetadataLogicalVolume[Path] |\n"
|
||||
"\t [--poolmetadatasize size]\n"
|
||||
"\t [--poolmetadataspare {y|n}]\n"
|
||||
"\t [-r|--readahead ReadAheadSectors|auto|none]\n"
|
||||
"\t [--stripes Stripes [-I|--stripesize StripeSize]]]\n"
|
||||
"\t[-T|--thin ExternalLogicalVolume[Path]\n"
|
||||
"\t [--originname NewExternalOriginVolumeName]]\n"
|
||||
"\t[--originname NewExternalOriginVolumeName]]\n"
|
||||
"\t[-Z|--zero {y|n}]\n"
|
||||
"\t[--commandprofile ProfileName]\n"
|
||||
"\t[-d|--debug] [-h|-?|--help] [-v|--verbose]\n\n"
|
||||
COMMON_OPTS
|
||||
"\t[ExternalOrigin|ThinDataPool]LogicalVolume[Path]\n\n"
|
||||
|
||||
"lvconvert "
|
||||
"--type cache-pool\n"
|
||||
"[--type cache[-pool]|--cache]\n"
|
||||
"\t[--cachepool CacheDataLogicalVolume[Path]]\n"
|
||||
"\t[--cachemode CacheMode]\n"
|
||||
"\t[--chunksize size]\n"
|
||||
"\t[--poolmetadataspare {y|n}]]\n"
|
||||
"\t[--poolmetadata CacheMetadataLogicalVolume[Path] |\n"
|
||||
"\t [--poolmetadatasize size]\n"
|
||||
"\t [--poolmetadataspare {y|n}]]\n"
|
||||
"\t[--commandprofile ProfileName]\n"
|
||||
"\tCacheDataLogicalVolume[Path]\n\n"
|
||||
COMMON_OPTS
|
||||
"\t[Cache|CacheDataPool]LogicalVolume[Path]\n\n",
|
||||
|
||||
"lvconvert "
|
||||
"--type cache\n"
|
||||
"\t--cachepool CachePoolLogicalVolume[Path]\n"
|
||||
"\t[--commandprofile ProfileName]\n"
|
||||
"\tLogicalVolume[Path]\n\n",
|
||||
|
||||
alloc_ARG, background_ARG, cachemode_ARG, cachepool_ARG, chunksize_ARG,
|
||||
alloc_ARG, background_ARG, cache_ARG, cachemode_ARG, cachepool_ARG, chunksize_ARG,
|
||||
corelog_ARG, discards_ARG, force_ARG, interval_ARG, merge_ARG, mirrorlog_ARG,
|
||||
mirrors_ARG, name_ARG, noudevsync_ARG, originname_ARG, poolmetadata_ARG,
|
||||
poolmetadatasize_ARG, poolmetadataspare_ARG, readahead_ARG, regionsize_ARG,
|
||||
@ -1278,4 +1257,3 @@ xx(version,
|
||||
"Display software and driver version information",
|
||||
PERMITTED_READ_ONLY,
|
||||
"version\n" )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user