mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
This commit is contained in:
parent
c379e930e7
commit
9896584a4b
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue