summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2015-05-16 12:05:26 +0000
committerrmacklem <rmacklem@FreeBSD.org>2015-05-16 12:05:26 +0000
commit8df65c37f21b6d4bbed84f9f1029a48cf07c980a (patch)
treeeef94a1047057cf97f2cfb5423d819f327b376fe /usr.sbin/mountd
parent31c10ff4f53c0423323992830fa9087a3424feb6 (diff)
downloadFreeBSD-src-8df65c37f21b6d4bbed84f9f1029a48cf07c980a.zip
FreeBSD-src-8df65c37f21b6d4bbed84f9f1029a48cf07c980a.tar.gz
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. Reviewed by: trasz MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/mountd')
-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 3508f50..d916577 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -1410,6 +1410,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