Re: [PATCH 1/2] f2fs: detect wrong layout

From: Eric Biggers
Date: Wed Dec 07 2016 - 15:17:41 EST


On Tue, Dec 06, 2016 at 05:16:24PM -0800, Jaegeuk Kim wrote:
> Previous mkfs.f2fs allows small partition inappropriately, so f2fs should detect
> that as well.
>
> Refer this in f2fs-tools.
>
> mkfs.f2fs: detect small partition by overprovision ratio and # of segments
>
> Reported-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx>
> ---

Hi Jaegeuk, I tested these two patches and they seem to work correctly --- the
kernel now doesn't allow mounting a 32 MB f2fs filesystem.

Thanks!

Eric