Re: [PATCH 2/3] fs: namei: Allow follow_down() to uncover auto mounts

From: Richard Weinberger
Date: Sun Nov 27 2022 - 16:29:56 EST


----- Ursprüngliche Mail -----
> Von: "Jeff Layton" <jlayton@xxxxxxxxxx>
>> So, in nfsd_cross_mnt() the follow_down() helper should use LOOKUP_AUTOMOUNT
>> only
>> if exp->ex_flags & NFSEXP_CROSSMOUNT is true?
>> Sounds sane, thanks for the pointer.
>>
>
> Yeah, I think so. I do wonder if we ought to make any provision for
> "nohide" exports, but since you have to enumerate those explicitly, it
> shouldn't be a huge problem for someone to just ensure that they're
> mounted beforehand.

TBH, I didn't invest much into the nohide feature wrt. NFS re-exporting.
What problem do you have in mind?

I wonder also what NFS client folks think about my changes before I send
the next revision (with Jeff's comments addressed).

Thanks,
//richard