File 0114-incorrect-argument-checking-for-btrfs-sub-snap-r.patch of Package btrfsprogs

From d77a169154ad56e502ae63b3692c990038c96643 Mon Sep 17 00:00:00 2001
From: Stephane Chazelas <stephane.chazelas@gmail.com>
Date: Thu, 30 Jun 2011 13:34:38 +0100
Subject: [PATCH 14/28] incorrect argument checking for "btrfs sub snap -r"

Looks like this was missing in integration-20110626 for the
readonly snapshot patch:

Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
---
 btrfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/btrfs.c b/btrfs.c
index c90ee48..9cc2665 100644
--- 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.",
-- 
1.7.5.2.353.g5df3e

openSUSE Build Service is sponsored by