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

Dave Dykstra
2025-10-17T20:48:43Z

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.

Dave