On Tue, Apr 2, 2013 at 7:05 AM, Stuart Henderson <s...@spacehopper.org> wrote: > On 2013-04-01, David Higgs <hig...@gmail.com> wrote: >> On Mon, Apr 1, 2013 at 7:33 AM, Stuart Henderson <s...@spacehopper.org> >> wrote: >>> On 2013-03-31, David Higgs <hig...@gmail.com> wrote: >>>> In trying to avoid multiple copies of OpenBSD source on my VMs, I am >>>> trying to use NFS; however, permissions don't seem to be working >>>> right. I would very much appreciate help in figuring out what I'm >>>> doing wrong, and am also interested in tips on how to compile from >>>> read-only source trees. >>> >>> >>> On the NFS server, is /usr/src in the same filesystem as some other >>> path which you export with different options? >>> >>> (NFS server options (-maproot etc) are per-filesystem not per export.) >>> >> >> I originally provided the entirety of my /etc/exports file, but > > The exports file isn't enough to show whether directories are in > the same filesystem (see the warning in the BUGS section of exports(5). > >> experimenting with debugging flags produced output that varied >> depending on whether /etc/exports had one or multiple lines. Using >> multiple lines fixes my permissions problem, interestingly enough. Is >> this sendbug(1) worthy? > > Looks like this is documented: > > Each line in the file (other than comment lines that begin with a ``#'') > specifies the mount point(s) and export flags within one local server > filesystem for one or more hosts.
Highlighting this and the BUGS section makes more sense. While accurate, the combined terminology of mount points, filesystems, local, and remote was terse enough to confuse me. I may experiment more to definitively reproduce my permissions issue. >> Will experiment with read-only and lndir(1) in the coming week. > > iirc there's something in the source tree which doesn't work with > a read-only mount (xenocara is OK though), not sure whether lndir > gets around that or not. > I'm slowly whittling down the options required. Building the kernel creates and populates a compile directory, while userland wants to create obj symlinks and has problems with binutils/gdb when using noexec. Haven't gotten to lndir yet. Thanks again. --david