The BLKZONED feature is mandatory for host-managed zoned block devices. So check that it is set.
Signed-off-by: Damien Le Moal <damien.lem...@wdc.com> --- fsck/mount.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fsck/mount.c b/fsck/mount.c index dead207..6e27a5b 100644 --- a/fsck/mount.c +++ b/fsck/mount.c @@ -394,6 +394,13 @@ int sanity_check_raw_super(struct f2fs_super_block *sb, u64 offset) get_sb(root_ino) != 3) return -1; + /* Check zoned block device feature */ + if (config.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; -- 2.7.4 Western Digital Corporation (and its subsidiaries) E-mail Confidentiality Notice & Disclaimer: This e-mail and any files transmitted with it may contain confidential or legally privileged information of WDC and/or its affiliates, and are intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the e-mail in its entirety from your system. ------------------------------------------------------------------------------ The Command Line: Reinvented for Modern Developers Did the resurgence of CLI tooling catch you by surprise? Reconnect with the command line and become more productive. Learn the new .NET and ASP.NET CLI. Get your free copy! http://sdm.link/telerik _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel