add ability to query/change feature bits online
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest9 patches 3 repliesIn review
- v17 patches 4 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | btrfs: add ioctls to query/change feature bits onlinefs/ fs/ include/ | +166 | 3 replies | |
| 2/9 | btrfs: use btrfs_commit_transaction when setting fslabelfs/ | +1 | 0 replies | |
| 3/9 | kobject: introduce kobj_completioninclude/ lib/ | +68 | 0 replies | |
| 4/9 | btrfs: export supported featured to sysfsfs/ fs/ fs/ +1 more | +89 | 0 replies | |
| 5/9 | btrfs: add per-super attributes to sysfsfs/ fs/ fs/ +1 more | +90 | 0 replies | |
| 6/9 | btrfs: publish per-super features to sysfsfs/ fs/ fs/ | +75 | 0 replies | |
| 7/9 | btrfs: add publishing of unknown features in sysfsfs/ | +71 | 0 replies | |
| 8/9 | btrfs: add ability to change features via sysfsfs/ | +96 | 0 replies | |
| 9/9 | btrfs: use feature attribute names to print better error messagesfs/ fs/ fs/ | +57 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [patch 0/9 v3] add ability to query/change feature bits online
The first patch of this series is the ioctl patch I posted before, with the review comments handled. It now uses the reserved 57 ioctl.
The rest of the series is enabling sysfs access to feature bits, similar to how ext4 publishes that information. Since we already have the online changing ability via the ioctl patch, we can also enable that via sysfs as well.
/sys/fs/btrfs/features/ contains attributes for supported features, with the content indicating if the attribute is settable or clearable while mounted.
/sys/fs/btrfs/<fsid>/features/ contains the attributes enabled on the file system plus attributes for features that can be changed online. The content indicates whether the feature is currently enabled. The permissions of the file also indicate whether it's changeable while online.
The kobj_completion patch is not intended to be applied with this set. It should be accepted via Greg KH but is needed for testing until then.
I'll post updated tools patches separately.
-Jeff