summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2015-04-18 19:52:39 +0000
committersjg <sjg@FreeBSD.org>2015-04-18 19:52:39 +0000
commitec156468498da600ba8b0fde444b783708e7246d (patch)
treee5b46c49344cc95f4dd10a026a5aaae29e225e28 /usr.sbin/mountd
parent6f8fd102fa0effb26b1eeb759caccb0e6279e122 (diff)
downloadFreeBSD-src-ec156468498da600ba8b0fde444b783708e7246d.zip
FreeBSD-src-ec156468498da600ba8b0fde444b783708e7246d.tar.gz
No need to delete export from filesystems which are not exported.
Diffstat (limited to 'usr.sbin/mountd')
-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