Date: Tue, 29 May 2001 10:46:53 -0700 (PDT) From: Ian Dowse <iedowse@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mountd mountd.c src/sys/kern vfs_export.c Message-ID: <200105291746.f4THkrk38790@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105291746.f4THkrk38790>
