svn commit: r281699 - head/usr.sbin/mountd
Simon J. Gerraty
sjg at FreeBSD.org
Sat Apr 18 19:52:40 UTC 2015
Author: sjg
Date: Sat Apr 18 19:52:39 2015
New Revision: 281699
URL: https://svnweb.freebsd.org/changeset/base/281699
Log:
No need to delete export from filesystems which are not exported.
Modified:
head/usr.sbin/mountd/mountd.c
Modified: head/usr.sbin/mountd/mountd.c
==============================================================================
--- head/usr.sbin/mountd/mountd.c Sat Apr 18 19:37:37 2015 (r281698)
+++ head/usr.sbin/mountd/mountd.c Sat Apr 18 19:52:39 2015 (r281699)
@@ -1732,6 +1732,12 @@ get_exportlist(void)
}
/*
+ * We do not need to delete "export" flag from
+ * filesystems that do not have it set.
+ */
+ if (!(fsp->f_flags & MNT_EXPORTED))
+ continue;
+ /*
* Do not delete export for network filesystem by
* passing "export" arg to nmount().
* It only makes sense to do this for local filesystems.
More information about the svn-src-head
mailing list