summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2015-05-14 18:15:21 +0000
committersjg <sjg@FreeBSD.org>2015-05-14 18:15:21 +0000
commit30e0f73c2f69f805f1c7381f9bcb0a03802f5038 (patch)
tree7a85a641f8aa37cbad795670d791d3155b949e38
parentd29714b5d57c648f5a7449efbcb5a66079799577 (diff)
downloadFreeBSD-src-30e0f73c2f69f805f1c7381f9bcb0a03802f5038.zip
FreeBSD-src-30e0f73c2f69f805f1c7381f9bcb0a03802f5038.tar.gz
No need to delete export from filesystems which are not exported.
-rw-r--r--usr.sbin/mountd/mountd.c6
1 files changed, 6 insertions, 0 deletions
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.
OpenPOWER on IntegriCloud