Date: Sat, 18 Apr 2015 19:52:40 +0000 (UTC) From: "Simon J. Gerraty" <sjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281699 - head/usr.sbin/mountd Message-ID: <201504181952.t3IJqe8A003838@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504181952.t3IJqe8A003838>