check number of args for btrfs sub snap correctly
authorAndreas Philipp <philipp.andreas@gmail.com>
Thu, 11 Aug 2011 06:45:40 +0000 (08:45 +0200)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 Oct 2011 13:18:59 +0000 (09:18 -0400)
commita8b624eae7c358d67a35e847bd25c29f846046f9
treee5ae8abff45f8d89b483a39d77046254bff6b6ef
parenta70b0b2bba94fe62541cc21a9afe35015521fcc3
check number of args for btrfs sub snap correctly

Check whether there are the right number of arguments (exatly 2 without
the flag -r) in the subcommand handler for the btrfs subvolume snapshot
command.

Signed-off-by: Andreas Philipp <philipp.andreas@gmail.com>
btrfs_cmds.c