btrfs-progs: mkfs: convert help text to option formatter

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-01-11 18:56:46 +01:00
parent dfd58c294b
commit 347c8209e8

View File

@ -413,33 +413,32 @@ static const char * const mkfs_usage[] = {
"mkfs.btrfs [options] <dev> [<dev...>]",
"Create a BTRFS filesystem on a device or multiple devices",
"",
"Options:",
" allocation profiles:",
"\t-d|--data PROFILE data profile, raid0, raid1, raid1c3, raid1c4, raid5, raid6, raid10, dup or single",
"\t-m|--metadata PROFILE metadata profile, values like for data profile",
"\t-M|--mixed mix metadata and data together",
" features:",
"\t--csum TYPE",
"\t--checksum TYPE checksum algorithm to use, crc32c (default), xxhash, sha256, blake2",
"\t-n|--nodesize SIZE size of btree nodes",
"\t-s|--sectorsize SIZE data block size (may not be mountable by current kernel)",
"\t-O|--features LIST comma separated list of filesystem features (use '-O list-all' to list features)",
"\t-R|--runtime-features LIST comma separated list of runtime features (use '-R list-all' to list runtime features)",
"\t-L|--label LABEL set the filesystem label",
"\t-U|--uuid UUID specify the filesystem UUID (must be unique)",
" creation:",
"\t-b|--byte-count SIZE set size of each device to SIZE (filesystem size is sum of all device sizes)",
"\t-r|--rootdir DIR copy files from DIR to the image root directory",
"\t--shrink (with --rootdir) shrink the filled filesystem to minimal size",
"\t-K|--nodiscard do not perform whole device TRIM",
"\t-f|--force force overwrite of existing filesystem",
" general:",
"\t-q|--quiet no messages except errors",
"\t-v|--verbose increase verbosity level, default is 1",
"\t-V|--version print the mkfs.btrfs version and exit",
"\t--help print this help and exit",
" deprecated:",
"\t-l|--leafsize SIZE removed in 6.0, use --nodesize",
"Allocation profiles:",
OPTLINE("-d|--data PROFILE", "data profile, raid0, raid1, raid1c3, raid1c4, raid5, raid6, raid10, dup or single"),
OPTLINE("-m|--metadata PROFILE", "metadata profile, values like for data profile"),
OPTLINE("-M|--mixed","mix metadata and data together"),
"Features:",
OPTLINE("--csum TYPE", ""),
OPTLINE("--checksum TYPE", "checksum algorithm to use, crc32c (default), xxhash, sha256, blake2"),
OPTLINE("-n|--nodesize SIZE", "size of btree nodes"),
OPTLINE("-s|--sectorsize SIZE", "data block size (may not be mountable by current kernel)"),
OPTLINE("-O|--features LIST", "comma separated list of filesystem features (use '-O list-all' to list features)"),
OPTLINE("-R|--runtime-features LIST", "comma separated list of runtime features (use '-R list-all' to list runtime features)"),
OPTLINE("-L|--label LABEL", "set the filesystem label"),
OPTLINE("-U|--uuid UUID", "specify the filesystem UUID (must be unique)"),
"Creation:",
OPTLINE("-b|--byte-count SIZE", "set size of each device to SIZE (filesystem size is sum of all device sizes)"),
OPTLINE("-r|--rootdir DIR", "copy files from DIR to the image root directory"),
OPTLINE("--shrink", "(with --rootdir) shrink the filled filesystem to minimal size"),
OPTLINE("-K|--nodiscard", "do not perform whole device TRIM"),
OPTLINE("-f|--force", "force overwrite of existing filesystem"),
"General:",
OPTLINE("-q|--quiet", "no messages except errors"),
OPTLINE("-v|--verbose", "increase verbosity level, default is 1"),
OPTLINE("-V|--version", "print the mkfs.btrfs version and exit"),
OPTLINE("--help", "print this help and exit"),
"Deprecated:",
OPTLINE("-l|--leafsize SIZE", "removed in 6.0, use --nodesize"),
NULL
};