[PATCH 1/2] erofs-utils: mount: support mounting EROFS stored as an AWS S3 object
Gao Xiang
xiang at kernel.org
Sat Apr 18 02:20:03 AEST 2026
On Fri, Apr 17, 2026 at 10:15:30PM +0800, Yifan Zhao wrote:
>
> On 4/17/2026 6:18 PM, Gao Xiang wrote:
...
> @@ -1106,7 +1263,7 @@ static int erofsmount_startnbd_nl(pid_t *pid, struct erofsmount_source *source)
> > }
> > }
> > }
> > - erofs_io_close(&ctx.vd);
> > + erofs_io_close(ctx.vd);
> > out_fork:
> > (void)unlink(recp);
> > free(recp);
> > @@ -1186,13 +1343,13 @@ static int erofsmount_reattach(const char *target)
>
> In erofsmount_reattach() we should:
>
> `struct erofsmount_nbd_ctx ctx = {};` => `struct erofsmount_nbd_ctx ctx
> = {.vd = &ctx._vd};`
>
> otherwise uninitialized ctx.vd leads to segfault.
Thanks, fixed.
Thanks,
Gao Xiang
>
>
> Thanks,
>
> Yifan Zhao
>
More information about the Linux-erofs
mailing list