From patchwork Wed Apr 13 09:12:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Philipp X-Patchwork-Id: 703381 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 p3D9CY5N031856 for ; Wed, 13 Apr 2011 09:12:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757969Ab1DMJMc (ORCPT ); Wed, 13 Apr 2011 05:12:32 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:60696 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757966Ab1DMJMa (ORCPT ); Wed, 13 Apr 2011 05:12:30 -0400 Received: by wya21 with SMTP id 21so311108wya.19 for ; Wed, 13 Apr 2011 02:12:29 -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=wIllL+5qZIBMTLvoPabjhoK6AxS2fHdan50PpgcxEWLxbHvmfdDBJEZ0+Vi1vyscgm eQ/CfId1C/ZlmZX2RBmJIYb1epCJXkNDuFUESVgX+MFHhpGbrdYYsW/ZhJQj4fExNnvs ufpWTseWHnrK4nlS90LBbJPlUULmHSNNDEkns= 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=tMwGess7BI1aKCdiK06GVIDbpmXlaB5IPGW+SEB+B2QQSwRUqxWu5cBnk5Kw5zoOnq k77Koe8/PwXMGHu9vMqiRd7nKQJF0eFXzk+iwE2DryDX61wd9bRc+GaXOCxRqeBx+tqk XihFW2OoYaBRkQpUhmQc1HRAGwG6YX0Prgb8I= Received: by 10.216.20.141 with SMTP id p13mr5300031wep.102.1302685948925; Wed, 13 Apr 2011 02:12:28 -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 d54sm148184wej.10.2011.04.13.02.12.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Apr 2011 02:12:28 -0700 (PDT) From: Andreas Philipp To: linux-btrfs@vger.kernel.org Cc: Andreas Philipp , lizf@cn.fujitsu.com Subject: [PATCH 2/5] Support the new parameters in do_clone(int argc, char** argv). Date: Wed, 13 Apr 2011 11:12:11 +0200 Message-Id: <1302685934-15737-3-git-send-email-philipp.andreas@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1302685934-15737-1-git-send-email-philipp.andreas@gmail.com> References: <1302685934-15737-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]); Wed, 13 Apr 2011 09:12:35 +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,