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

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



On Tue, 5 Mar 2002 11:55:00 -0800
"David S." <davids@idiom.com> hit the keyboard and punched:

> > 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".

This was exactly what I was looking for... thanks!


-- 

Rickard

                                               .--.        .--.
.----------------------------------------.     |  |        |  | .-.
|           Rickard Borgmäster           |     |  |        |  |/  /
|             doktorn@sub.nu             |   .-^  |  .--.  |     <
|         http://doktorn.sub.nu/         |  (  o  | ( () ) |  |\  \
`----------------------------------------'  `-----'  `--'  `--' `--'