The BLKZONED feature is mandatory for host-managed zoned block
devices. So check that it is set.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
get_sb(root_ino) != 3)
return -1;
+ /* Check zoned block device feature */
+ if (c.zoned_model == F2FS_ZONED_HM &&
+ !(sb->feature & cpu_to_le32(F2FS_FEATURE_BLKZONED))) {
+ MSG(0, "\tMissing zoned block device feature\n");
+ return -1;
+ }
+
if (sanity_check_area_boundary(sb, offset))
return -1;
return 0;