summaryrefslogtreecommitdiff
path: root/cmds-inspect-dump-super.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-03-15 16:32:26 +0100
committerDavid Sterba <dsterba@suse.com>2016-03-15 16:41:06 +0100
commit17c7df6fed2c106b045914d162265a260185db20 (patch)
tree71cf92d012b68afcf882e7af0cf9174a431b5692 /cmds-inspect-dump-super.c
parenta54ef26e5158b0f470ccabf330296487c43331c3 (diff)
btrfs-progs: dump-super: add more long options
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-inspect-dump-super.c')
-rw-r--r--cmds-inspect-dump-super.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/cmds-inspect-dump-super.c b/cmds-inspect-dump-super.c
index 253a68a5..3e09ee8c 100644
--- a/cmds-inspect-dump-super.c
+++ b/cmds-inspect-dump-super.c
@@ -443,11 +443,11 @@ static int load_and_dump_sb(char *filename, int fd, u64 sb_bytenr, int full,
const char * const cmd_inspect_dump_super_usage[] = {
"btrfs inspect-internal dump-super [options] device [device...]",
- "Dump superblock from a device",
- "-f print full superblock information",
- "-a print information of all superblocks",
+ "Dump superblock from a device in a textual form",
+ "-f|--full print full superblock information",
+ "-a|--all print information about all superblocks",
"-i <super_mirror> specify which mirror to print out",
- "-F attempt to dump superblocks with bad magic",
+ "-F|--force attempt to dump superblocks with bad magic",
"-s <bytenr> specify alternate superblock offset",
NULL
};
@@ -467,6 +467,9 @@ int cmd_inspect_dump_super(int argc, char **argv)
while (1) {
int c;
static const struct option long_options[] = {
+ {"all", no_argument, NULL, 'a'},
+ {"full", no_argument, NULL, 'f'},
+ {"force", no_argument, NULL, 'F'},
{NULL, 0, NULL, 0}
};