linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Misono, Tomohiro" <misono.tomohiro@jp.fujitsu.com>
To: <linux-btrfs@vger.kernel.org>
Subject: [PATCH 1/3] btrfs-progs: fix option handling for some commands
Date: Thu, 24 Aug 2017 14:18:25 +0900	[thread overview]
Message-ID: <2ea1dea7-13b5-b984-03ce-2d88d4f9d220@jp.fujitsu.com> (raw)

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) {
-- 
2.9.4


             reply	other threads:[~2017-08-24  5:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-24  5:18 Misono, Tomohiro [this message]
2017-08-24  5:24 ` [PATCH 2/3] btrfs-progs: fix option handling for some commands Misono, Tomohiro
2017-08-24  5:25 ` [PATCH 3/3] " Misono, Tomohiro
2017-08-24  6:06 ` [PATCH] btrfs-progs: change document in accordance with usage info Misono, Tomohiro
2017-08-24 17:18 ` [PATCH 1/3] btrfs-progs: fix option handling for some commands David Sterba
  -- strict thread matches above, loose matches on Subject: below --
2017-08-24  4:03 Misono, Tomohiro
2017-08-24  5:14 ` Misono, Tomohiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ea1dea7-13b5-b984-03ce-2d88d4f9d220@jp.fujitsu.com \
    --to=misono.tomohiro@jp.fujitsu.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).