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

From: Chao Yu
Date: Thu Sep 02 2021 - 10:14:39 EST


On 2021/9/1 23:17, Daeho Jeong wrote:

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.

Okay, so it needs to describe that fragment:rand_block option has implicitly
enables fragment:segment option in document?