Date: Tue, 17 May 2005 20:31:58 +0200 From: Dean Strik <dean@stack.nl> To: Jeremie Le Hen <jeremie@le-hen.org> Cc: freebsd-net@FreeBSD.org Subject: Re: Can't export /usr/ports Message-ID: <20050517183158.GG29278@stack.nl> In-Reply-To: <20050517140125.GD14297@obiwan.tataz.chchile.org> References: <20050517140125.GD14297@obiwan.tataz.chchile.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--YH9Qf6Fh2G5kB/85 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Jeremie Le Hen wrote: > Look at this small session. The initial exports(5) file works fine. The > second one generate an error. >=20 > %%% > propane:tataz# cat /etc/exports=20 > /usr/home/ncvs -ro -network 172.16.0.0 -mask 255.255.0.0 > /usr/home/tataz -maproot=3Dtataz -network 172.16.80.0 -mask 2= 55.255.255.0 > propane:tataz# sed -i '' '${ p; s%home/tataz%ports%; s/tataz/root/; }= ' /etc/exports=20 > propane:tataz# cat /etc/exports=20 > /usr/home/ncvs -ro -network 172.16.0.0 -mask 255.255.0.0 > /usr/home/tataz -maproot=3Dtataz -network 172.16.80.0 -mask 2= 55.255.255.0 > /usr/ports -maproot=3Droot -network 172.16.80.0 -mask 25= 5.255.255.0 > propane:tataz# /etc/rc.d/mountd reload > Reloading mountd config files. > propane:tataz# tail -n 2 /var/log/messages > May 17 15:33:03 propane mountd[367]: can't change attributes for /usr= /ports > May 17 15:33:03 propane mountd[367]: bad exports list line /usr/ports= -maproot > %%% >=20 > I checked mountd(8) sources, and this error messages appears when the > mount(2) syscall fails (I assume this is the way mountd(8) informs the > kernel about a directory to be exported). >=20 > I'm sure this is a foolish error from me, but I can't figure one. If /usr/ports and /usr/home/tataz are on the same filesystem, then you need to put both on the samen lines when exporting to the same host. You lose the possibililty to lose options specific to either export though. --=20 Dean C. Strik Eindhoven University of Technology dean@stack.nl | dean@ipnet6.org | http://www.ipnet6.org/ "This isn't right. This isn't even wrong." -- Wolfgang Pauli --YH9Qf6Fh2G5kB/85 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCijie5Td/bYnvOAMRAm4hAJ4zOvF94ZPy2//jUdiYw3CGRWePDgCfYVrC ITHCcOR8+r1VDui22ZKixdU= =ZC3D -----END PGP SIGNATURE----- --YH9Qf6Fh2G5kB/85--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050517183158.GG29278>