From 66e069d7f13d2cdec9d0b9e05fce19c1952f825b Mon Sep 17 00:00:00 2001 From: "Lakshmipathi.G" Date: Thu, 22 Jun 2017 13:27:53 +0530 Subject: [PATCH] btrfs-progs: Fix 'btrfs device stats --check' cli option "Bug 194961 - btrfs device stats --check 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 Signed-off-by: Lakshmipathi.G Signed-off-by: David Sterba --- cmds-device.c | 1 + 1 file changed, 1 insertion(+) 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} };