diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2006-05-28 18:59:28 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2006-05-28 18:59:28 +0000 |
commit | f5f4b77a10dee6f7b5030f1278d65749bf03f03e (patch) | |
tree | cd5df297c2b3f1cddd01f2d5082d36615819d737 /usr.sbin | |
parent | e47b8f99a7c5af86f64742ddfa24ca98ab291acc (diff) | |
download | FreeBSD-src-f5f4b77a10dee6f7b5030f1278d65749bf03f03e.zip FreeBSD-src-f5f4b77a10dee6f7b5030f1278d65749bf03f03e.tar.gz |
Do not log "can't delete export" messages if nmount() returns ENOTSUP.
This eliminates spurious log entries for trying to delete exports
for filesystems like devfs and procfs.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/mountd/mountd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index b44a1fc..350e888 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -1032,7 +1032,7 @@ get_exportlist() } if (nmount(iov, iovlen, fsp->f_flags) < 0 && - errno != ENOENT) { + errno != ENOENT && errno != ENOTSUP) { syslog(LOG_ERR, "can't delete exports for %s: %m %s", fsp->f_mntonname, errmsg); |