Re: [patch 1/7] [PATCH] btrfs: add ability to query/change feature bits online

2013-09-16 Thread Jeff Mahoney
On 9/16/13 1:26 PM, David Sterba wrote: > On Tue, Sep 10, 2013 at 12:24:09AM -0400, Jeff Mahoney wrote: >> +static int btrfs_ioctl_set_features(struct file *file, void __user *arg) >> +{ >> +struct btrfs_root *root = BTRFS_I(file_inode(file))->root; >> +struct btrfs_super_block *super_block

Re: [patch 1/7] [PATCH] btrfs: add ability to query/change feature bits online

2013-09-16 Thread David Sterba
On Tue, Sep 10, 2013 at 12:24:09AM -0400, Jeff Mahoney wrote: > +static int btrfs_ioctl_set_features(struct file *file, void __user *arg) > +{ > + struct btrfs_root *root = BTRFS_I(file_inode(file))->root; > + struct btrfs_super_block *super_block = root->fs_info->super_copy; > + struct

[patch 1/7] [PATCH] btrfs: add ability to query/change feature bits online

2013-09-09 Thread Jeff Mahoney
There are some feature bits that require no offline setup and can be enabled online. I've only reviewed extended irefs, but there will probably be more. We introduce three new ioctls: - BTRFS_IOC_GET_SUPPORTED_FEATURES: query the kernel for supported features. - BTRFS_IOC_GET_FEATURES: query the k