From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Liu Subject: Re: [PATCH] Btrfs-progs: added btrfs filesystem label [label] [path] support V2 Date: Fri, 02 Sep 2011 21:13:34 +0800 Message-ID: <4E60D67E.2070903@oracle.com> References: <4E5F47C7.3030803@oracle.com> <4E5F7216.7040909@oracle.com> <20110902125208.GF11678@ds.suse.cz> Reply-To: jeff.liu@oracle.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linux-btrfs@vger.kernel.org, Hugo Mills , chris.mason@oracle.com To: dsterba@suse.cz Return-path: In-Reply-To: <20110902125208.GF11678@ds.suse.cz> List-ID: 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", "