History

btrfs: introduce ZONED feature flag

This patch introduces the ZONED incompat flag. The flag indicates that the volume management will satisfy the constraints imposed by host-managed zoned block devices (aligned chunk allocation, append-only updates, reset zone after filled). As the zoned support will happen incrementally due to enhancing some core infrastructure like super block writes, tree-log, raid support, the feature will appear in sysfs only on debug builds. It will be enabled once the support is feature complete and applications can reliably check whether zoned support is present or not.

Naohiro Aota committed 6 years ago

Commit 7b3d5a91 parent a2633b62 files · +8 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/btrfs.h+1−0
@@ -307,6 +307,7 @@ struct btrfs_ioctl_fs_info_args { · 306 unmodified lines
307307 #define BTRFS_FEATURE_INCOMPAT_NO_HOLES (1ULL << 9)
308308 #define BTRFS_FEATURE_INCOMPAT_METADATA_UUID (1ULL << 10)
309309 #define BTRFS_FEATURE_INCOMPAT_RAID1C34 (1ULL << 11)
310+#define BTRFS_FEATURE_INCOMPAT_ZONED (1ULL << 12)
310311
311312 struct btrfs_ioctl_feature_flags {
312313 __u64 compat_flags;