Re: [PATCH v2] erofs-utils: fsck: extract chunk-based file with hole correctly

2024-04-24 Thread Gao Xiang
On Mon, Apr 22, 2024 at 07:31:32PM +0800, Yifan Zhao wrote: > Currently fsck skips file extraction if it finds that EROFS_MAP_MAPPED > is unset, which is not the case for chunk-based files with hole. This > patch handles the corner case correctly. > > Signed-off-by: Yifan Zhao I will apply the

[PATCH v2] erofs-utils: fsck: extract chunk-based file with hole correctly

2024-04-22 Thread Yifan Zhao
Currently fsck skips file extraction if it finds that EROFS_MAP_MAPPED is unset, which is not the case for chunk-based files with hole. This patch handles the corner case correctly. Signed-off-by: Yifan Zhao --- changelog since v1: - use lseek instead of write zero to the hole fsck/main.c | 11