From owner-freebsd-bugs Sat Nov 11 01:00:10 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA08108 for bugs-outgoing; Sat, 11 Nov 1995 01:00:10 -0800 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA08097 ; Sat, 11 Nov 1995 01:00:05 -0800 Resent-Date: Sat, 11 Nov 1995 01:00:05 -0800 Resent-Message-Id: <199511110900.BAA08097@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, hsu@clinet.fi Received: from hauki.clinet.fi (root@hauki.clinet.fi [194.100.0.1]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id AAA08052 for ; Sat, 11 Nov 1995 00:57:47 -0800 Received: from katiska.clinet.fi (root@katiska.clinet.fi [194.100.0.4]) by hauki.clinet.fi (8.6.12/8.6.4) with ESMTP id KAA00974 for ; Sat, 11 Nov 1995 10:57:27 +0200 Received: (root@localhost) by katiska.clinet.fi (8.6.12/8.6.4) id KAA00945; Sat, 11 Nov 1995 10:57:28 +0200 Message-Id: <199511110857.KAA00945@katiska.clinet.fi> Date: Sat, 11 Nov 1995 10:57:28 +0200 From: Heikki Suonsivu Reply-To: hsu@clinet.fi To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/815: mountd error message is confusing Sender: owner-bugs@freebsd.org Precedence: bulk >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: