summaryrefslogtreecommitdiff
path: root/cmds-check.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-10-30 14:34:06 +0800
committerDavid Sterba <dsterba@suse.cz>2014-11-03 18:35:31 +0100
commit0f70b67a0c280ee1801412e0080aae8ad4eae98b (patch)
tree537b2293e378553ec5bd10b9c8c98f7fd333df4e /cmds-check.c
parent8a26f850cd63535d38bc554589f126e043979c2b (diff)
btrfs-progs: Fix the argument requirement for '--subvol-extents'
The following commit changed the argument requirement for '--subvol-extents', which causes it to call arg_strtou64() on NULL, resulting a segfault. d34cbe76 btrfs-progs: check: do not require argument for --subvol-extents This patch revert the patch and change the help string and man page to make it no longer confusing. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-check.c')
-rw-r--r--cmds-check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-check.c b/cmds-check.c
index 2a5f823d..923fb10c 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -7544,7 +7544,7 @@ static struct option long_options[] = {
{ "init-extent-tree", 0, NULL, 0 },
{ "check-data-csum", 0, NULL, 0 },
{ "backup", 0, NULL, 0 },
- { "subvol-extents", no_argument, NULL, 'E' },
+ { "subvol-extents", 1, NULL, 'E' },
{ "qgroup-report", 0, NULL, 'Q' },
{ NULL, 0, NULL, 0}
};
@@ -7560,7 +7560,7 @@ const char * const cmd_check_usage[] = {
"--init-extent-tree create a new extent tree",
"--check-data-csum verify checkums of data blocks",
"--qgroup-report print a report on qgroup consistency",
- "--subvol-extents print subvolume extents and sharing state",
+ "--subvol-extents <subvolid> print subvolume extents and sharing state",
NULL
};