From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
To: dsterba@suse.cz,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH 2/4] btrfs-progs: fix a reression that "property" with -t option doesn't work
Date: Wed, 16 Mar 2016 08:28:47 +0900 [thread overview]
Message-ID: <56E89AAF.90709@jp.fujitsu.com> (raw)
In-Reply-To: <20160314122315.GB18908@twin.jikos.cz>
On 2016/03/14 21:23, David Sterba wrote:
> On Mon, Mar 14, 2016 at 09:12:36AM +0900, Satoru Takeuchi wrote:
>> --- a/cmds-property.c
>> +++ b/cmds-property.c
>> @@ -379,9 +379,7 @@ static int cmd_property_get(int argc, char **argv)
>> char *name = NULL;
>> int types = 0;
>>
>> - clean_args_no_options(argc, argv, cmd_property_get_usage);
>> -
>> - if (check_argc_min(argc, 2) || check_argc_max(argc, 5))
>> + if (check_argc_min(argc, 2))
>> usage(cmd_property_get_usage);
>>
>> parse_args(argc, argv, cmd_property_get_usage, &types, &object, &name,
>
> We still need to check the number of non-option arguments here, when the
> optind is set from parse_args.
OK, I'll send a patch which checks the number after getopt.
Thanks,
Satoru
>
>> @@ -415,9 +413,7 @@ static int cmd_property_set(int argc, char **argv)
>> - if (check_argc_min(argc, 4) || check_argc_max(argc, 6))
>> + if (check_argc_min(argc, 4))
>> usage(cmd_property_set_usage);
>
> ...
>
>> parse_args(argc, argv, cmd_property_set_usage, &types,
>> @@ -446,9 +442,7 @@ static int cmd_property_list(int argc, char **argv)
>> - if (check_argc_min(argc, 2) || check_argc_max(argc, 4))
>> + if (check_argc_min(argc, 2))
>
> ...
>
next prev parent reply other threads:[~2016-03-15 23:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-14 0:02 [PATCH 1/4] btrfs-progs: Avoid interpreting options after "--" when getting unit mode Satoru Takeuchi
2016-03-14 0:12 ` [PATCH 2/4] btrfs-progs: fix a reression that "property" with -t option doesn't work Satoru Takeuchi
2016-03-14 12:23 ` David Sterba
2016-03-15 23:28 ` Satoru Takeuchi [this message]
2016-03-14 0:15 ` [PATCH 3/4] btrfs-progs: Fix a regression that btrfs filesystem label " Satoru Takeuchi
2016-03-14 12:19 ` David Sterba
2016-03-14 0:27 ` [PATCH 4/4] btrfs-progs: "device ready" accepts just one device Satoru Takeuchi
2016-03-14 12:05 ` David Sterba
2016-04-25 11:59 ` David Sterba
2016-03-14 12:28 ` [PATCH 1/4] btrfs-progs: Avoid interpreting options after "--" when getting unit mode David Sterba
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=56E89AAF.90709@jp.fujitsu.com \
--to=takeuchi_satoru@jp.fujitsu.com \
--cc=dsterba@suse.cz \
--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).