Subject: bin/9038: mountd doens't properly re-export export lists
To: None <gnats-bugs@gnats.netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-bugs
Date: 12/21/1999 18:03:50
>Number: 9038
>Category: bin
>Synopsis: mountd doens't properly re-export export list
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 21 18:03:00 1999
>Last-Modified:
>Originator:
>Organization:
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
>Release: -current as of a few days ago
>Environment:
System: NetBSD armandeche 1.4P NetBSD 1.4P (ARMANDECHE) #1: Sun Dec 19 20:26:10 MET 1999 bouyer@armandeche:/home/cvs.netbsd.org/src/sys/arch/i386/compile/ARMANDECHE i386
>Description:
I have the followig directories exported:
/home/cvs.netbsd.org -maproot=0 -ro
/ -alldirs -maproot=0 horn
/usr -alldirs -maproot=0 horn
/cdrom -alldirs -maproot=0 -ro
/zip -root=0 asim
With the folloing filesystems mounted:
armandeche# df -l
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 99124 42519 51648 45% /
/dev/wd0e 594368 412601 152048 73% /usr
/dev/wd0f 5317498 4126413 1084735 79% /home
mfs:178 14487 103 13659 0% /tmp
/dev/cd0a 237890 237890 0 100% /cdrom
When mountd is started export list is correct:
Exports list on localhost:
/usr horn
/home/cvs.netbsd.org Everyone
/cdrom Everyone
/ horn
/zip asim.lip6.fr
But if I kill -HUP mountd (without changes to /etc/exports or the
mounted filesystems), then I have:
Exports list on localhost:
/usr horn
/ horn
/zip asim.lip6.fr
and in messages:
Dec 22 02:50:01 armandeche mountd[6599]: "/home/cvs.netbsd.org -maproot", line 1: Can't change attributes for /home/cvs.netbsd.org to Default
Dec 22 02:50:01 armandeche mountd[6599]: "/cdrom -alldirs -maproot", line 4: Can't change attributes for /cdrom to Default
If I kill and restart mountd the export list is correct again
If I export /home instead of /home/cvs.netbsd.org I don't have this
problem.
It seems that the change in mountd.c 1.57->1.58 doesn't work
when the exported point is not a filesystem root. I didn't look
further yet.
>How-To-Repeat:
See above
>Fix:
unknown yet.
>Audit-Trail:
>Unformatted: