tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: stacked NFS mounts



    Date:        Fri, 7 Mar 2025 21:40:27 +0100
    From:        Edgar =?iso-8859-1?B?RnXf?= <ef%math.uni-bonn.de@localhost>
    Message-ID:  <20250307204026.GL2350%trav.math.uni-bonn.de@localhost>

  | 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



Home | Main Index | Thread Index | Old Index