nl6720 reported in [1], mkfs.f2fs doesn't report block size, instead, it prints sector size which is not used inside f2fs. Let's print block size as well during mkfs as below:
output of mkfs.f2fs: Info: sector size = 512 Info: total sectors = 16777216 (8192 MB) Info: block size = 4096 [1] https://lore.kernel.org/linux-f2fs-devel/20250425013623.918150-1-devn...@nl6720.me Reported-by: nl6720 <devn...@nl6720.me> Closes: https://github.com/jaegeuk/f2fs-tools/issues/29 Signed-off-by: Chao Yu <c...@kernel.org> --- lib/libf2fs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libf2fs.c b/lib/libf2fs.c index d2579d7..40c974d 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -1375,6 +1375,7 @@ int f2fs_get_f2fs_info(void) MSG(0, "Info: total sectors = %"PRIu64" (%"PRIu64" MB)\n", c.total_sectors, (c.total_sectors * (c.sector_size >> 9)) >> 11); + MSG(0, "Info: block size = %u\n", c.blksize); return 0; } -- 2.49.0 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel