Re: [f2fs-dev] [PATCH v3] f2fs: introduce fragment allocation mode mount option

From: Daeho Jeong
Date: Wed Sep 01 2021 - 11:17:39 EST


>
> if (F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_SEG)?
>
> It needs to randomize position of next segment only in fragment_seg mode? IIRC.
>

I want the randomness of segment allocation in fragment:*_block mode
to simulate real filesystem fragmentation.
How about just using fragment:rand_block for the simulation. I mean we
can use segment randomness for fragment:segment and
fragment:rand_block.