From 30e0f73c2f69f805f1c7381f9bcb0a03802f5038 Mon Sep 17 00:00:00 2001 From: sjg Date: Thu, 14 May 2015 18:15:21 +0000 Subject: No need to delete export from filesystems which are not exported. --- usr.sbin/mountd/mountd.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'usr.sbin') diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index ad1964e..d71f1d9 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -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. -- cgit v1.1