File 0110-Support-the-new-parameters-in-do_clone-int-argc-char.patch of Package btrfsprogs

From 4e5f702b00a0717aa29fabad76cb8c94a53b4728 Mon Sep 17 00:00:00 2001
From: Andreas Philipp <philipp.andreas@gmail.com>
Date: Tue, 26 Apr 2011 10:02:42 +0200
Subject: [PATCH 10/28] Support the new parameters in do_clone(int argc,
 char** argv).

Now 'btrfs subvolume snapshot' takes not two but only at least two
parameters. Additionally, the help message is updated accordingly.

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

diff --git a/btrfs.c b/btrfs.c
index 742dd27..c90ee48 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -50,8 +50,8 @@ static struct Command commands[] = {
 		avoid short commands different for the case only
 	*/
 	{ do_clone, 2,
-	  "subvolume snapshot", "<source> [<dest>/]<name>\n"
-		"Create a writable snapshot of the subvolume <source> with\n"
+	  "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.",
 	  NULL
 	},
-- 
1.7.5.2.353.g5df3e

openSUSE Build Service is sponsored by