svn commit: r282915 - stable/10/usr.sbin/mountd

Simon J. Gerraty sjg at FreeBSD.org
Thu May 14 18:15:22 UTC 2015


Author: sjg
Date: Thu May 14 18:15:21 2015
New Revision: 282915
URL: https://svnweb.freebsd.org/changeset/base/282915

Log:
  No need to delete export from filesystems which are not exported.

Modified:
  stable/10/usr.sbin/mountd/mountd.c

Modified: stable/10/usr.sbin/mountd/mountd.c
==============================================================================
--- stable/10/usr.sbin/mountd/mountd.c	Thu May 14 18:09:56 2015	(r282914)
+++ stable/10/usr.sbin/mountd/mountd.c	Thu May 14 18:15:21 2015	(r282915)
@@ -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-all mailing list