incorrect argument checking for "btrfs sub snap -r"
authorStephane Chazelas <stephane.chazelas@gmail.com>
Thu, 30 Jun 2011 12:34:38 +0000 (13:34 +0100)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 Oct 2011 13:18:58 +0000 (09:18 -0400)
Looks like this was missing in integration-20110626 for the
readonly snapshot patch:

Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
btrfs.c

diff --git a/btrfs.c b/btrfs.c
index c90ee48..9cc2665 100644 (file)
--- a/btrfs.c
+++ b/btrfs.c
@@ -49,7 +49,7 @@ static struct Command commands[] = {
        /*
                avoid short commands different for the case only
        */
-       { do_clone, 2,
+       { do_clone, -2,
          "subvolume snapshot", "[-r] <source> [<dest>/]<name>\n"
                "Create a writable/readonly snapshot of the subvolume <source> with\n"
                "the name <name> in the <dest> directory.",