Re: [PATCH] fuse2fs: open read-only when ro option and image non-writable

Darrick J. Wong
2025-10-17T23:28:50Z

On Fri, Oct 17, 2025 at 03:48:32PM -0500, Dave Dykstra wrote:
> On Fri, Oct 17, 2025 at 03:14:50PM -0500, Dave Dykstra wrote:
> > On Fri, Oct 17, 2025 at 12:24:56PM -0700, Darrick J. Wong wrote:
> ...
> > > > + ret = 4;
> > >
> > > Why 4? Is this an internal mount bug?
> >
> > I was just guessing; I didn't know what the bits meant. Where are they
> > documented? All I knew was that it needed to not include the "& 1" bit
> > which was included with "ret = 3" because that printed an erroneous
> > error just after the "out" label.
>
> Oh, it's supposed to follow the return codes from mount(8). I think
> ret = 2 is most appropriate then.

Could you please spend more time understanding the context in which fuse
servers operate, particularly when they're called as mount(8) helpers?

--D

> Dave
>
>