btrfs-progs: check: add missing short options E and Q to getopt
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>
Thu, 24 Aug 2017 05:18:25 +0000 (14:18 +0900)
committerDavid Sterba <dsterba@suse.com>
Thu, 24 Aug 2017 17:12:33 +0000 (19:12 +0200)
I found some btrfs commands options are not working because of
inappropriate getopt_long() setting.

This fixes "btrfs check -Q/-E"

Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c

index acd22f0..f6320b2 100644 (file)
@@ -12762,7 +12762,7 @@ int cmd_check(int argc, char **argv)
                        { NULL, 0, NULL, 0}
                };
 
-               c = getopt_long(argc, argv, "as:br:p", long_options, NULL);
+               c = getopt_long(argc, argv, "as:br:pEQ", long_options, NULL);
                if (c < 0)
                        break;
                switch(c) {