From patchwork Tue Apr 26 08:02:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Philipp X-Patchwork-Id: 731822 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3Q83SIJ031257 for ; Tue, 26 Apr 2011 08:03:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758499Ab1DZIDW (ORCPT ); Tue, 26 Apr 2011 04:03:22 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:37061 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756769Ab1DZIDH (ORCPT ); Tue, 26 Apr 2011 04:03:07 -0400 Received: by wya21 with SMTP id 21so238052wya.19 for ; Tue, 26 Apr 2011 01:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=b6QW6NfXTB6VH2KB4aBbSsG1SkoS90YDXkbEjTdPF9U=; b=XQBSvzHsEreTVU6ksZsZjN31KVv6Yu2zF5glq6y/Y/FDEOuJ7s85kPmQ1nfDvxfXa5 GPPPl/U+eOW2y6oe5VEOak8gcFiBZeECAtXGWxM/Z4iJi2zchols9LlR1XWsWKPpOXLW eBIrAJ7c9A84HAWEsOtOJg55ojIhf1/pCBiNk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=w1oAcaBRwDcIblgxF4+arSR5LHwORc5EILvkwY5WoUdLWi8OeJX0YKf0hQyPkd9ooJ atMFLDhNHDNeUDWXjwfLrhW9F+v7tOKijgbJxQUeyIxa7gKdAlfkVZ3p1Fg7D1So6for kLagUub4cKnwUmE3tY9Ve7e/CQI63tqGCK78A= Received: by 10.216.232.13 with SMTP id m13mr4182666weq.110.1303804986346; Tue, 26 Apr 2011 01:03:06 -0700 (PDT) Received: from localhost.localdomain (84-119-52-190.dynamic.xdsl-line.inode.at [84.119.52.190]) by mx.google.com with ESMTPS id j49sm2865644wer.38.2011.04.26.01.03.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Apr 2011 01:03:05 -0700 (PDT) From: Andreas Philipp To: linux-btrfs@vger.kernel.org Cc: Andreas Philipp , chris.mason@oracle.com, dcrmorgado@gmail.com, kreijack@libero.it, lizf@cn.fujitsu.com Subject: [PATCH 3/5] Support the new parameters in do_clone(int argc, char** argv). Date: Tue, 26 Apr 2011 10:02:42 +0200 Message-Id: <1303804964-2840-4-git-send-email-philipp.andreas@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1303804964-2840-1-git-send-email-philipp.andreas@gmail.com> References: <1303804964-2840-1-git-send-email-philipp.andreas@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 26 Apr 2011 08:03:28 +0000 (UTC) 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 --- btrfs.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/btrfs.c b/btrfs.c index 46314cf..f70d64b 100644 --- a/btrfs.c +++ b/btrfs.c @@ -44,9 +44,9 @@ static struct Command commands[] = { /* avoid short commands different for the case only */ - { do_clone, 2, - "subvolume snapshot", " [/]\n" - "Create a writable snapshot of the subvolume with\n" + { do_clone, -2, + "subvolume snapshot", "[-r] [/]\n" + "Create a writable/readonly snapshot of the subvolume with\n" "the name in the directory." }, { do_delete_subvolume, 1,