[1/3] btrfs-progs: fix option handling for some commands
diff mbox

Message ID c24c91e1-1e0e-c398-bf84-59fecb76637e@jp.fujitsu.com
State New
Headers show

Commit Message

Misono Tomohiro Aug. 24, 2017, 4:03 a.m. UTC
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>
---
  cmds-check.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

                 switch(c) {

Comments

Misono Tomohiro Aug. 24, 2017, 5:14 a.m. UTC | #1
Sorry, this patch's encoding is wrong.
Please ignore this and I will resend the patch.

On 2017/08/24 13:03, Misono, Tomohiro wrote:
> 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>
> ---
>   cmds-check.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/cmds-check.c b/cmds-check.c
> index c5faa2b..465fd17 100644
> --- a/cmds-check.c
> +++ b/cmds-check.c
> @@ -12745,7 +12745,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:pQE:", long_options, 
> NULL);
>                  if (c < 0)
>                          break;
>                  switch(c) {

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch
diff mbox

diff --git a/cmds-check.c b/cmds-check.c
index c5faa2b..465fd17 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -12745,7 +12745,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:pQE:", long_options, 
NULL);
                 if (c < 0)
                         break;