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.
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to