]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: introduce ZONED feature flag
authorNaohiro Aota <naohiro.aota@wdc.com>
Tue, 10 Nov 2020 11:26:06 +0000 (20:26 +0900)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:54:16 +0000 (15:54 +0100)
commit6f0ea3cffd3cac6b87e1d86a2ef421f072fec78f
treebec7d095291e5474173b0c9fae39c3f16a41d28b
parent8763295a3790a67633e13e52fb0deb8e4277865d
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.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c
include/uapi/linux/btrfs.h