summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLakshmipathi.G <lakshmipathi.g@giis.co.in>2017-06-22 13:27:53 +0530
committerDavid Sterba <dsterba@suse.com>2017-06-26 17:09:48 +0200
commit66e069d7f13d2cdec9d0b9e05fce19c1952f825b (patch)
tree3068d0d40960dc5b7d17370b5eb7259da084646f
parentba793d8d7069ee7a264a7731e871f5469ca865e8 (diff)
btrfs-progs: Fix 'btrfs device stats --check' cli option
"Bug 194961 - btrfs device stats --check <folder> does not work" The long option --check is not recognized as it's missing from the option table. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=194961 Reported-by: Tomas Thiemel<thiemel@centrum.cz> Signed-off-by: Lakshmipathi.G <Lakshmipathi.G@giis.co.in> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--cmds-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds-device.c b/cmds-device.c
index 5e016a7c..4337eb27 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -400,6 +400,7 @@ static int cmd_device_stats(int argc, char **argv)
while (1) {
int c;
static const struct option long_options[] = {
+ {"check", no_argument, NULL, 'c'},
{"reset", no_argument, NULL, 'z'},
{NULL, 0, NULL, 0}
};