From owner-cvs-all Tue May 29 10:46:57 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8390B37B42C; Tue, 29 May 2001 10:46:53 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4THkrk38790; Tue, 29 May 2001 10:46:53 -0700 (PDT) (envelope-from iedowse) Message-Id: <200105291746.f4THkrk38790@freefall.freebsd.org> From: Ian Dowse Date: Tue, 29 May 2001 10:46:53 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mountd mountd.c src/sys/kern vfs_export.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2001/05/29 10:46:53 PDT Modified files: sbin/mountd mountd.c sys/kern vfs_export.c Log: Since the netexport struct was centralised to 'struct mount', attempting to remove nonexistant exports with MNT_DELEXPORT returns an error; before this change it always succeeded. This caused mountd(8) to log "can't delete exports for /whatever" warnings. Change the error code from EINVAL to a more specific ENOENT, and make mountd ignore this error when deleting the export list. I could have just restored the previous behaviour of returning success, but I think an error return is a useful diagnostic. Reviewed by: phk Revision Changes Path 1.53 +5 -4 src/sbin/mountd/mountd.c 1.311 +2 -2 src/sys/kern/vfs_export.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message