Date: Sun, 29 Feb 2004 10:47:48 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Tom Munro Glass <gentoo@tmgcon.com> Cc: freebsd-questions@freebsd.org Subject: Re: NFS sharing /usr/ports and /usr/src Message-ID: <20040229104748.GD14123@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <200402291745.34112.gentoo@tmgcon.com> References: <200402291745.34112.gentoo@tmgcon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--oj4kGyHlBMXGt3Le Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 29, 2004 at 05:45:33PM +1300, Tom Munro Glass wrote: > I want to NFS share /usr/ports and /usr/src from a master machine for use= by=20 > other machines. If I specify -network and -mask options for each share, I= get=20 > the error: >=20 > mountd[101]: can't change attributes for /usr/src > mountd[101]: bad exports list line /usr/src >=20 > but if I don't have any options, the share works OK? >=20 > What am I doing wrong? You've probably got /usr/ports and /usr/src on the same disk partition. You can't export two chunks of the same partition to the same set of client hosts with different flags. Not only that, but you can't do anything that even smacks of changing the flags between two exported subdirectories on a single partition. Or in other words, it's the partition that gets exported, rather than the particular directory trees you specify. I think, although I could be wrong, that if you export, say, /usr/src which happens to reside on the /usr partition, then an NFS client can be persuaded to access files from anywhere on the /usr partition. What you should do is put the two subdirectories on the same line in the exports file: /usr/ports /usr/src -network 192.168.0.0 -mask 255.255.255.0 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --oj4kGyHlBMXGt3Le Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAQcNUdtESqEQa7a0RAkK6AJsG7bbaubPrPLcAXoyovFGj5nLXkwCfXKdK JRFb/PSp4i//it5AoamUreA= =BFXI -----END PGP SIGNATURE----- --oj4kGyHlBMXGt3Le--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040229104748.GD14123>