Re: [PATCH v4 4/4] f2fs: stop checkpoint when get a out-of-bounds segment

From: Chao Yu
Date: Tue Feb 20 2024 - 01:29:09 EST


On 2024/2/20 14:11, Zhiguo Niu wrote:
There is low probability that an out-of-bounds segment will be got
on a small-capacity device. In order to prevent subsequent write requests
allocating block address from this invalid segment, which may cause
unexpected issue, stop checkpoint should be performed.

Also introduce a new stop cp reason: STOP_CP_REASON_NO_SEGMENT.

Can you please adjust f2fs-tools as well?


Signed-off-by: Zhiguo Niu <zhiguo.niu@xxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,