Re: stacked NFS mounts

Robert Elz <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
    Date:        Fri, 7 Mar 2025 21:40:27 +0100
    From:        Edgar =?iso-8859-1?B?RnXf?= <[email protected]>
    Message-ID:  <[email protected]>

  | I could mount 1. on /var/chroot/tftpd/RO, put a symlink RW->../RW in there 
  | and start tftpd with RO as an argument, but I'm unsure whether tftpd wil 
  | follow the symlink.

tftpd isn't that smart a program, it would never notice a symlink,
it does some stat() calls (no lstat()) and the options it uses with
open() (for reading/writing/creating) are entirely mundane.   There's
no reason it would even notice that RW is a symlink rather than just
being a directory.

  | I could use a null mount instead of the symlink, but then I'd run into the 
  | same problem as now

Possibly, I was kind of hoping that umounting the overlay would not
need to touch the underlying filesystem at all, there's no reason
it should need to (particularly if given -f).

  | Better ideas?

None.

kre
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.