From patchwork Mon Sep 5 07:32:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "jeff.liu" X-Patchwork-Id: 1124652 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p857Wq80022775 for ; Mon, 5 Sep 2011 07:32:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751116Ab1IEHcu (ORCPT ); Mon, 5 Sep 2011 03:32:50 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:29696 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751078Ab1IEHct (ORCPT ); Mon, 5 Sep 2011 03:32:49 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p857WX29026485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 5 Sep 2011 07:32:34 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p857WV9S003464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Sep 2011 07:32:32 GMT Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p857WQkY021311; Mon, 5 Sep 2011 02:32:26 -0500 Received: from [192.168.1.103] (/221.223.119.224) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 05 Sep 2011 00:32:25 -0700 Message-ID: <4E647B04.50804@oracle.com> Date: Mon, 05 Sep 2011 15:32:20 +0800 From: Jeff Liu Reply-To: jeff.liu@oracle.com Organization: Oracle User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: linux-btrfs@vger.kernel.org CC: Hugo Mills , dsterba@suse.cz, Chris Mason , lizf@cn.fujitsu.com Subject: [PATCH] Btrfs-progs: added btrfs filesystem label [label] [path] support V3 References: <4E5F47C7.3030803@oracle.com> <4E5F7216.7040909@oracle.com> <20110902125208.GF11678@ds.suse.cz> <4E60D67E.2070903@oracle.com> <20110902154810.GH11678@ds.suse.cz> <46CBCF59-89E1-4A80-B85D-17C65F695247@oracle.com> <20110904170301.GE9907@carfax.org.uk> <4E645F76.5040505@oracle.com> In-Reply-To: <4E645F76.5040505@oracle.com> X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090205.4E647B13.00A5,ss=1,re=0.000,fgs=0 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]); Mon, 05 Sep 2011 07:32:53 +0000 (UTC) Fix the ioctl number of BTRFS_IOC_FS_SETLABEL to 50. Signed-off-by: Jie Liu --- btrfs.c | 7 +++---- btrfs_cmds.c | 34 ++++++++++++++++++++++++++++++++++ btrfs_cmds.h | 1 + ctree.h | 4 ++++ ioctl.h | 2 ++ mkfs.c | 19 ------------------- utils.c | 18 ++++++++++++++++++ utils.h | 1 + 8 files changed, 63 insertions(+), 23 deletions(-) diff --git a/btrfs.c b/btrfs.c index 46314cf..6d414f1 100644 --- a/btrfs.c +++ b/btrfs.c @@ -108,11 +108,10 @@ static struct Command commands[] = { "device delete", " [..] \n" "Remove a device from a filesystem." }, - /* coming soon - { 2, "filesystem label", "