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

Re: /usr/src on NFS - and /usr/ports



> Can you build for several machines from one /usr/src?
> And also, can you do the same for the /usr/ports if you 
> make it available (read/write) over NFS to several sites?

If you use the union file system, you can export '/usr/src' read-only
from the server.  For example,

	% mount -t nfs -o ro server:/usr/src /var/tmp/mnt/src
	% mount -t union -o -b /var/tmp/mnt/src /usr/src

Changes made by the client to '/usr/src' are only local, as
'server:/usr/src' is read-only.  A reference to file or directory
under '/usr/src' on the client goes to the client's version.  If
the file doesn't exist locally, the reference falls through to
the server.  See the man page for "mount_union".

David S.