[PATCH] Btrfs: added new ioctl to set fs label V3

2011-09-05 Thread Jeff Liu
Hello, According to Hugo and David's advise, the ioctl number of BTRFS_IOC_FS_SETLABEL ioctl was changed to 50 now. Signed-off-by: Jie Liu --- fs/btrfs/ctree.h |4 fs/btrfs/ioctl.c | 36 fs/btrfs/ioctl.h |2 ++ 3 files changed, 42 insertio

[PATCH] Btrfs: added new ioctl to set fs label V2

2011-09-01 Thread Jeff Liu
Thanks again for your nice comments! The wiki update is in progress. Btw, is it make sense to improve the "struct btrfs_ioctl_fs_info_args" to retrieve the label info through BTRFS_IOC_FS_INFO? Would you please review the revised version? Signed-off-by: Jie Liu --- fs/btrfs/ctree.h |4

Re: [PATCH] Btrfs: added new ioctl to set fs label

2011-09-01 Thread Hugo Mills
On Thu, Sep 01, 2011 at 05:18:38PM +0800, Jeff Liu wrote: > Hi Hugo, > > On 09/01/2011 05:00 PM, Hugo Mills wrote: > >On Thu, Sep 01, 2011 at 04:47:47PM +0800, Jeff Liu wrote: > >>Hello, > >> > >>I'd like to introduce a new ioctl to set file system label. > >>With this feature, we can execute `btr

Re: [PATCH] Btrfs: added new ioctl to set fs label

2011-09-01 Thread Jeff Liu
Hi Hugo, On 09/01/2011 05:00 PM, Hugo Mills wrote: On Thu, Sep 01, 2011 at 04:47:47PM +0800, Jeff Liu wrote: Hello, I'd like to introduce a new ioctl to set file system label. With this feature, we can execute `btrfs filesystem label [label] [path]` through btrfs tools to set or change the lab

Re: [PATCH] Btrfs: added new ioctl to set fs label

2011-09-01 Thread Hugo Mills
On Thu, Sep 01, 2011 at 04:47:47PM +0800, Jeff Liu wrote: > Hello, > > I'd like to introduce a new ioctl to set file system label. > With this feature, we can execute `btrfs filesystem label [label] > [path]` through btrfs tools to set or change the label. > > Signed-off-by: Jie Liu > > --- >

[PATCH] Btrfs: added new ioctl to set fs label

2011-09-01 Thread Jeff Liu
Hello, I'd like to introduce a new ioctl to set file system label. With this feature, we can execute `btrfs filesystem label [label] [path]` through btrfs tools to set or change the label. Signed-off-by: Jie Liu --- fs/btrfs/ctree.h |6 ++ fs/btrfs/ioctl.c | 37 ++