diff options
author | sjg <sjg@FreeBSD.org> | 2015-04-18 19:52:39 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2015-04-18 19:52:39 +0000 |
commit | ec156468498da600ba8b0fde444b783708e7246d (patch) | |
tree | e5b46c49344cc95f4dd10a026a5aaae29e225e28 /usr.sbin/mountd/mountd.c | |
parent | 6f8fd102fa0effb26b1eeb759caccb0e6279e122 (diff) | |
download | FreeBSD-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/mountd.c')
-rw-r--r-- | usr.sbin/mountd/mountd.c | 6 |
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. |