[PATCH 01/13] btrfs: add ioctls to query/change feature bits online

2013-11-15 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

Re: [PATCH 01/13] btrfs: add ioctls to query/change feature bits online

2013-11-03 Thread Jeff Mahoney
On 11/1/13, 4:56 PM, Zach Brown wrote: >> +static int btrfs_ioctl_get_supported_features(struct file *file, >> + void __user *arg) >> +{ >> +struct btrfs_ioctl_feature_flags features[3]; >> + >> +features[0].compat_flags = BTRFS_FEATURE_COMPAT_SUPP;

Re: [PATCH 01/13] btrfs: add ioctls to query/change feature bits online

2013-11-01 Thread Zach Brown
> +static int btrfs_ioctl_get_supported_features(struct file *file, > + void __user *arg) > +{ > + struct btrfs_ioctl_feature_flags features[3]; > + > + features[0].compat_flags = BTRFS_FEATURE_COMPAT_SUPP; > + features[0].compat_ro_flags = BTRF

[PATCH 01/13] btrfs: add ioctls to query/change feature bits online

2013-11-01 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

[patch 01/13] btrfs: add ioctls to query/change feature bits online

2013-10-21 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