f2fs-tools/lib
Luis Chamberlain 6afcf64935 libf2fs: don't allow mkfs / fsck on non power-of-2 zoned devices
f2fs currently only work with zoned storage devices with a zone
size which is a power of 2 (PO2). So check if a non-power of 2
zoned device is found, and if so disallow its use. This prevents
users from incorrectly using these devices.

This is a non-issue today given today's kernel does not allow NPO2
zoned devices to exist as a block device. But NPO2 zoned devices do exist
so proactively put a stop-gap measure in place to prevent it from being
incorrectly used.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2022-04-20 11:08:30 -07:00
..
libf2fs_io.c f2fs-tools: support small RO partition 2021-05-26 10:07:43 -07:00
libf2fs_zoned.c libf2fs: don't allow mkfs / fsck on non power-of-2 zoned devices 2022-04-20 11:08:30 -07:00
libf2fs.c libf2fs: don't allow mkfs / fsck on non power-of-2 zoned devices 2022-04-20 11:08:30 -07:00
Makefile.am f2fs-tools: Add support for Casefolding 2019-08-27 14:51:05 -07:00
nls_utf8.c f2fs-tools: Add support for Casefolding 2019-08-27 14:51:05 -07:00
utf8data.h f2fs-tools: Add support for Casefolding 2019-08-27 14:51:05 -07:00