Date: Sun, 7 Sep 1997 08:00:01 -0700 (PDT) From: Alain Brauner <alainb@freegate.gna.org> To: freebsd-bugs Subject: Re: bin/4448: Pb with -alldirs options in /etc/exports. Message-ID: <199709071500.IAA23040@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/4448; it has been noted by GNATS.
From: Alain Brauner <alainb@freegate.gna.org>
To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/4448: Pb with -alldirs options in /etc/exports.
Date: Sun, 7 Sep 1997 16:40:05 +0200 (CEST)
On Sun, 7 Sep 1997, J Wunsch wrote:
> As Alain Brauner wrote:
>
> > >Description:
> >
> > When the -alldirs options is set, mountd -r cannot export the
> > directory.
>
> I cannot reproduce this. -alldirs works as expected for me, with or
> withouth -r on mountd.
>
> > It syslog: Could not remount "%s" and Bad export list line "%s"
>
> This looks like an error in your /etc/exports file. Please send us
> this file, plus the output of /sbin/mount.
>
Thank's for you reply.
Ok, so i need to figure out what's wrong with my config.
Here are some details:
This system was installed from the 2.2.2-RELEASE CDROM and fully updated
via cvsup to 2.2-STABLE ( tag=RELENG_2_2 ) from cvsup.FreeBSD.org.
Last make world was done the 08/30/1997 in single user mode.
I have a single big root fs on one scsi disk.
I made an /export directory containing the root hierarchy of a
NetBSD(SPARC) binaries and a SWAPFILE in order to install a Sun
workstation via diskless boot.
So i need the -alldirs and the -r option of mountd.
/kernel and /etc/rc.conf are properly configured for use with NFS etc ...
Here is the /etc/exports i use for this:
/export -alldirs -root=0
Here is the /etc/bootparams used:
sun root=freegate:/export/sun/root \
swap=freegate:/export/sun/swap/SWAPFILE
Without changing anything mountd -r cannot export anything at boot time.
Syslogd messages are:
Sep 7 15:48:45 freegate mountd[305]: Could not remount /export: Invalid
argument
Sep 7 15:48:45 freegate mountd[305]: Bad exports list line /export
-alldirs -root
/sbin/mount just say:
/dev/sd0a on / (local)
procfs on /proc (local)
I clean, depend, recompile and reinstall all /usr/src/sbin stuff.
It hasn't change anything for me.
I also purge the /var/db/mountdtab file.
So i dirtyly comment out the mountd portion of code saying Could not
remount %s
And i was able to complete my installation.
I can just reproduce all this right away.
May be something has going wrong when i update the os ?
I also do a make includes on top of /etc/src to stay in phase with my
latest cvsup before rebuilding mountd.
NOTE: I did not find any troubles while using the -alldirs option in
my brand new NetBSD.
So i'am confused ...
Thank's again for your support.
Here is the diff for mountd:
"$Id: mountd.c,v 1.11.2.7 1997/08/29 19:23:39 guido Exp $"
------------------------ CUT HERE -------------------------
*** mountd.c.ori Sun Sep 7 16:00:32 1997
--- mountd.c Sun Sep 7 16:02:39 1997
***************
*** 1685,1695 ****
--- 1685,1697 ----
"Can't change attributes for %s.\n", dirp);
return (1);
}
+ /*
if (opt_flags & OP_ALLDIRS) {
syslog(LOG_ERR, "Could not remount %s: %m",
dirp);
return (1);
}
+ */
/* back up over the last component */
while (*cp == '/' && cp > dirp)
cp--;
------------------------ CUT HERE -------------------------
> --
> cheers, J"org
>
> joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
> Never trust an operating system you don't have sources for. ;-)
>
--
FreeBSD:<Live free or die>
Alain Brauner: alainb@freegate.gna.org
93200 St DENIS France
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709071500.IAA23040>
