Date: Tue, 29 May 2001 04:00:58 -0400 From: John <jwd@bsdwins.com> To: Ian Dowse <iedowse@maths.tcd.ie> Cc: John Polstra <jdp@polstra.com>, current@FreeBSD.ORG, Matthew Jacob <mjacob@feral.com> Subject: Re: wierdness with mountd Message-ID: <20010529040058.A67491@bsdwins.com> In-Reply-To: <200105290138.aa46895@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Tue, May 29, 2001 at 01:38:08AM %2B0100 References: <200105281755.f4SHtNa20515@vashon.polstra.com> <200105290138.aa46895@salmon.maths.tcd.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Ian Dowse's Original Message ----- > In message <200105281755.f4SHtNa20515@vashon.polstra.com>, John Polstra writes: > >In article <Pine.BSF.4.21.0105281028440.16204-100000@beppo.feral.com>, > >Matthew Jacob <mjacob@feral.com> wrote: > >> May 28 10:21:43 farrago mountd[217]: can't delete exports for /tmp > >> May 28 10:21:43 farrago mountd[217]: can't delete exports for /usr/obj > > > >I've been seeing this too, on a -current system from around May 5. > > This sounds like there are stale entries in /var/db/mountdtab, but > I'm not familiour enough with the purpose of mountdtab to know why > this is happening. I'll look into this further over the next few > days; for now maybe try cleaning out mountdtab manually? > > Ian Hi, Some info... I've looked into a bit previously.. I have no mountdtab file: %find /var -name 'mount*' /var/db/mounttab /var/log/mount.today /var/log/mount.yesterday /var/run/mountd.lock /var/run/mountd.pid What I have mounted, though it is not a part of this issue.. %cat /var/db/mounttab 990745123 snapserv /pub 990745123 snapserv /mirror/ncvs and then reboot the system: /boot/kernel/kernel: May 29 03:37:57 FreeBSD mountd[270]: can't delete exports for / /boot/kernel/kernel: May 29 03:37:57 FreeBSD mountd[270]: can't delete exports for /usr /boot/kernel/kernel: May 29 03:37:57 FreeBSD mountd[270]: can't delete exports for /tmp /boot/kernel/kernel: May 29 03:37:57 FreeBSD mountd[270]: can't delete exports for /var /boot/kernel/kernel: May 29 03:37:57 FreeBSD mountd[270]: can't delete exports for /usr/obj /boot/kernel/kernel: May 29 03:37:57 FreeBSD mountd[270]: can't delete exports for /snap Looking in /usr/src/sbin/mountd/mountd.c, under line 930 shows the following: num = getmntinfo(&fsp, MNT_NOWAIT); and then runs through a loop 'num' times trying to delete any export for each entry. Maybe it should check to see if there is an export before attempting to delete it by using the MNT_EXPORTED request? Note: These MNT_xxx definitions appear to be only partially documented in mount(2). If you kill and restart mountd the logic appears correct. Bringing mountd up on a newly booted system appears to be the oddball case. Hope this helps.. -john To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010529040058.A67491>