Re: [PATCH v2] Btrfs: add label to snapshot and subvol

2012-11-27 Thread Anand Jain
Hi Maio, Thanks for the review. Was away for sometime sorry for delay, have sent out the patch with review comments accepted. -Anand On 11/16/2012 02:33 PM, Miao Xie wrote: Hi, Anand On fri, 16 Nov 2012 12:52:25 +0800, Anand jain wrote: +static int btrfs_ioctl_subvol_getlabel(struct

[PATCH v2] Btrfs: add label to snapshot and subvol

2012-11-15 Thread Anand jain
From: Anand Jain anand.j...@oracle.com v1-v2: This adds a new member label in the btrfs_root_item struct, which uses 32 bytes of the reserved 64 bytes. So that btrfs_root_item remains same. Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/ctree.h | 12 +++-

Re: [PATCH v2] Btrfs: add label to snapshot and subvol

2012-11-15 Thread Miao Xie
Hi, Anand On fri, 16 Nov 2012 12:52:25 +0800, Anand jain wrote: +static int btrfs_ioctl_subvol_getlabel(struct btrfs_root *root, + void __user *arg) +{ + char *label; + + label = btrfs_root_label(root-root_item); + if