projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1e935d
)
btrfs-progs: dump-super: add missing long option bytenr to getopt
author
Misono, Tomohiro
<misono.tomohiro@jp.fujitsu.com>
Thu, 24 Aug 2017 05:25:29 +0000
(14:25 +0900)
committer
David Sterba
<dsterba@suse.com>
Thu, 24 Aug 2017 17:16:07 +0000
(19:16 +0200)
This fixes "btrfs inspect-internal dump-super --bytenr"
Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-inspect-dump-super.c
patch
|
blob
|
history
diff --git
a/cmds-inspect-dump-super.c
b/cmds-inspect-dump-super.c
index
c4a2565
..
3b9e85e
100644
(file)
--- a/
cmds-inspect-dump-super.c
+++ b/
cmds-inspect-dump-super.c
@@
-518,8
+518,10
@@
int cmd_inspect_dump_super(int argc, char **argv)
while (1) {
int c;
+ enum { GETOPT_VAL_BYTENR = 257 };
static const struct option long_options[] = {
{"all", no_argument, NULL, 'a'},
+ {"bytenr", required_argument, NULL, GETOPT_VAL_BYTENR },
{"full", no_argument, NULL, 'f'},
{"force", no_argument, NULL, 'F'},
{"super", required_argument, NULL, 's' },
@@
-564,6
+566,11
@@
int cmd_inspect_dump_super(int argc, char **argv)
}
all = 0;
break;
+ case GETOPT_VAL_BYTENR:
+ arg = arg_strtou64(optarg);
+ sb_bytenr = arg;
+ all = 0;
+ break;
default:
usage(cmd_inspect_dump_super_usage);
}