Re: [f2fs-dev] [PATCH] f2fs: expose subpage_block feature via sysfs

From: Chao Yu

Date: Wed Dec 02 2026 - 22:10:39 EST


On 12/3/26 05:45, Daeho Jeong wrote:
> From: Daeho Jeong <daehojeong@xxxxxxxxxx>
>
> f2fs can mount a filesystem whose block size is smaller than the page
> size, down to 4KB. A kernel without this support rejects such a
> filesystem at mount time, and userspace has no way to tell the two
> apart. A tool that formats a device needs to know it before picking the
> block size, e.g. to choose between 4KB and 16KB blocks on a 16KB page
> kernel.
>
> Add /sys/fs/f2fs/features/subpage_block, so that userspace can check
> whether the running kernel supports a block size smaller than the page
> size.
>
> Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>
Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,