Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Nov 1995 10:57:28 +0200
From:      Heikki Suonsivu <hsu@clinet.fi>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/815: mountd error message is confusing
Message-ID:  <199511110857.KAA00945@katiska.clinet.fi>
Resent-Message-ID: <199511110900.BAA08097@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         815
>Category:       bin
>Synopsis:       mountd reports unknown hosts with non-informative message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 11 01:00:02 PST 1995
>Last-Modified:
>Originator:     Heikki Suonsivu
>Organization:
Clinet, Espoo, Finland
>Release:        FreeBSD 2.1.0-950928-SNAP i386
>Environment:

	generic

>Description:

	If the export file contains a host which does not exist, noone can
	mount the disk, getting "permission denied" from mount.  The reason
	appears to be in mountd, which when reading the exports file
	calls mount(2) to put export info into kernel, and gets EPERM back.
	mountd then announces:

	Nov 11 10:43:53 katiska mountd[98]: Can't change attributes for /usr. 
	Nov 11 10:43:53 katiska mountd[98]: Bad exports list line /usr -root

	It would be very useful to know for which host the mount(2) failed.
	Knowing what went wrong would be great (EPERM does not seem too
	obvious to me, and mount(2) manual page does not mention this
	possibility?)
	
>How-To-Repeat:

	Remove a host from name service and kill -HUP mountd.

>Fix:
	
	It would seem that adding more informative error message would
	be enough to fix this problem.

	Sorry, I don't have a patch to provide right now, need to get in
	bed.

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511110857.KAA00945>