summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2015-05-30 01:04:45 +0000
committerrmacklem <rmacklem@FreeBSD.org>2015-05-30 01:04:45 +0000
commit8389b2b3fd8301752276d9baee209b08b6ed56ca (patch)
tree4ceda2099bd22de333f1f7a3d4395322e0dfa336 /usr.sbin
parentd390788aa793be6263ec4a16addca718fcf9cf47 (diff)
downloadFreeBSD-src-8389b2b3fd8301752276d9baee209b08b6ed56ca.zip
FreeBSD-src-8389b2b3fd8301752276d9baee209b08b6ed56ca.tar.gz
MFC: r283008
Add a warning message to mountd for exported file systems that are automounted, since that configuration isn't supported. This still allows the export, since two emails I received felt that this should not be disabled. It sends the message to syslog(LOG_ERR..), so that it goes to the same places as the other messages related to /etc/exports problems, even though it is a warning and not an error.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/mountd/mountd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index d71f1d9..7582195 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -1424,6 +1424,9 @@ get_exportlist_one(void)
}
if (check_dirpath(cp) &&
statfs(cp, &fsb) >= 0) {
+ if ((fsb.f_flags & MNT_AUTOMOUNTED) != 0)
+ syslog(LOG_ERR, "Warning: exporting of "
+ "automounted fs %s not supported", cp);
if (got_nondir) {
syslog(LOG_ERR, "dirs must be first");
getexp_err(ep, tgrp);
OpenPOWER on IntegriCloud