summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2006-05-28 20:09:18 +0000
committerrodrigc <rodrigc@FreeBSD.org>2006-05-28 20:09:18 +0000
commitd1d9c4f5bca9d6c55419ce30210d403bcadfb0a1 (patch)
treea492ebac9fb4399f6b40c74043765c3d9af3316b /sys/fs
parent624f77708d0e94c0f423053830fbac8f954ce148 (diff)
downloadFreeBSD-src-d1d9c4f5bca9d6c55419ce30210d403bcadfb0a1.zip
FreeBSD-src-d1d9c4f5bca9d6c55419ce30210d403bcadfb0a1.tar.gz
Modify MNT_UPDATE behavior for nullfs so that it does not
return EOPNOTSUPP if an "export" parameter was passed in. This should allow nullfs mounts to be NFS exported. PR: kern/87906 MFC after: 1 week
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/nullfs/null_vfsops.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index 1ba5c6e..c291fa8 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -89,8 +89,13 @@ nullfs_mount(struct mount *mp, struct thread *td)
* Update is a no-op
*/
if (mp->mnt_flag & MNT_UPDATE) {
- return (EOPNOTSUPP);
- /* return VFS_MOUNT(MOUNTTONULLMOUNT(mp)->nullm_vfs, path, data, ndp, td);*/
+ /*
+ * Only support update mounts for NFS export.
+ */
+ if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
+ return (0);
+ else
+ return (EOPNOTSUPP);
}
/*
OpenPOWER on IntegriCloud