[PATCH 2/3] erofs-utils: lib: avoid using lseek in diskbuf

Gao Xiang hsiangkao at linux.alibaba.com
Fri Sep 19 15:41:21 AEST 2025



On 2025/9/18 23:12, Yifan Zhao wrote:
> From: zhaoyifan <zhaoyifan28 at huawei.com>
> 
> The current `diskbuf` implementation uses `lseek` to operate file offset,
> preventing multiple streams from writing to the same file. Let's replace
> `write` + `lseek` with `pwrite` to enable this use pattern.
> 
> Signed-off-by: Yifan Zhao <zhaoyifan28 at huawei.com>

The first two patches look good to me, I will apply them first.

Thanks,
Gao Xiang



More information about the Linux-erofs mailing list