[PATCH v4 02/10] erofs-utils: lib: keep erofs_init_devices in sync with kernel
Gao Xiang
hsiangkao at linux.alibaba.com
Wed Aug 23 18:12:15 AEST 2023
On 2023/8/23 15:15, Jingbo Xu wrote:
> Keep erofs_init_devices() in sync with kernel erofs_scan_devices()[1],
> which scans the devtable (if any) automatically if sbi->extra_devices is
> not explicitly specified.
>
> Also fix the missing le32_to_cpu() when parsing the device slot. Read
> and cache the number of blocks of each device for later use.
>
> Fixes: 0ce853a01123 ("erofs-utils: fuse: add multiple device support")
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ba73eadd23d1c
> Signed-off-by: Jingbo Xu <jefflexu at linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao at linux.alibaba.com>
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list