btrfs-progs: qgroup create/destroy: fix argument parsing
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Fri, 18 Mar 2016 01:29:50 +0000 (10:29 +0900)
committerDavid Sterba <dsterba@suse.com>
Fri, 18 Mar 2016 13:12:19 +0000 (14:12 +0100)
commit5bec887333d4845ed8c7bcaaaadbda81e2c2aca9
tree40e90ca340122e84cc8e084c353364160d9b8e87
parentd0408017d0e8e517220750f3ea8523e9601ed9ea
btrfs-progs: qgroup create/destroy: fix argument parsing

"qgroup create/destroy" don't work from the following commit.

commit 176aeca9a148 ("btrfs-progs: add getopt stubs where needed")

* actual result

   ==================================================
   # ./btrfs qgroup create 1 /btrfs/sub
   btrfs qgroup create: too few arguments
   usage: btrfs qgroup create <qgroupid> <path>

       Create a subvolume quota group.
   ==================================================
   # btrfs qgroup create 1 /btrfs/sub
   # ./btrfs qgroup destroy 1 /btrfs/sub
   btrfs qgroup destroy: too few arguments
   usage: btrfs qgroup destroy <qgroupid> <path>

       Destroy a quota group.

   ==================================================

* expected result

   ==================================================
   # btrfs qgroup create 1 /btrfs/sub
   # btrfs qgroup destroy 1 /btrfs/sub/
   ==================================================

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-qgroup.c