On Mon, Mar 14, 2016 at 09:15:42AM +0900, Satoru Takeuchi wrote:
> The number of arguments which is allowed to pass became wrong
> from the following commit.
>
> commit 176aeca9a148c5e29de0 ("btrfs-progs: add getopt stubs where needed")
>
> * actual result
>
> ===========================================================
> # ./btrfs prop get /btrfs label
> label=foo
> # ./btrfs fi label /btrfs
> btrfs filesystem label: too few arguments
> usage: btrfs filesystem label [<device>|<mount_point>] [<newlabel>]
>
> Get or change the label of a filesystem
>
> With one argument, get the label of filesystem on <device>.
> If <newlabel> is passed, set the filesystem label to <newlabel>.
>
> # ./btrfs fi label /btrfs bar
> foo
> # ./btrfs prop get /btrfs label
> label=foo
> ===========================================================
>
> * expected result
>
> ===========================================================
> # ./btrfs prop get /btrfs label
> label=foo
> # ./btrfs fi label /btrfs
> foo
> # ./btrfs fi label /btrfs bar
> # ./btrfs prop get /btrfs label
> label=bar
> ===========================================================
>
> Signed-off-by: Satoru Takeuchi <takeuchi_satoru@xxxxxxxxxxxxxx>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html