From patchwork Fri Sep 2 13:13:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "jeff.liu" X-Patchwork-Id: 1121882 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 p82DDrxC023331 for ; Fri, 2 Sep 2011 13:14:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752120Ab1IBNOD (ORCPT ); Fri, 2 Sep 2011 09:14:03 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:27189 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752091Ab1IBNOC (ORCPT ); Fri, 2 Sep 2011 09:14:02 -0400 Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p82DDk1f022711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 2 Sep 2011 13:13:48 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p82DDjNY006203 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Sep 2011 13:13:45 GMT Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p82DDdW8024048; Fri, 2 Sep 2011 08:13:39 -0500 Received: from [192.168.1.103] (/221.223.96.208) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 02 Sep 2011 06:13:38 -0700 Message-ID: <4E60D67E.2070903@oracle.com> Date: Fri, 02 Sep 2011 21:13:34 +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: dsterba@suse.cz CC: linux-btrfs@vger.kernel.org, Hugo Mills , chris.mason@oracle.com Subject: Re: [PATCH] Btrfs-progs: added btrfs filesystem label [label] [path] support V2 References: <4E5F47C7.3030803@oracle.com> <4E5F7216.7040909@oracle.com> <20110902125208.GF11678@ds.suse.cz> In-Reply-To: <20110902125208.GF11678@ds.suse.cz> X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090205.4E60D68C.00FB,ss=1,re=-2.300,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]); Fri, 02 Sep 2011 13:14:23 +0000 (UTC) Hi David, On 09/02/2011 08:52 PM, David Sterba wrote: > Hi, > > are you aware that there is a label support already? Though only for > unmounted system, but please have a look at these patches: > > https://patchwork.kernel.org/patch/381141/ > https://patchwork.kernel.org/patch/842602/ > > and the patches are part of Hugo's integration for a long time, rather > check latest versions so you do not duplicate work. Thanks for your info! I was not aware of that at that time. :( I am definitely a newbie to Btrfs and the kernel world, just started to explore it at last week. :-) > On Thu, Sep 01, 2011 at 07:52:54PM +0800, Jeff Liu wrote: >> Revise the patch according to kernel side change. > Leave original commit message. If you want to document changes between > revised patch version put them ... ok, fixed as below: From e2990b69ecd3bac8da8023a64c866d16c81a1679 Mon Sep 17 00:00:00 2001 From: Jie Liu Date: Fri, 2 Sep 2011 21:07:35 +0800 Subject: [PATCH 1/1] Add btrfs filesystem label [label] [path] support through ioctl. 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", "