Add nfs export support to tmpfs(5)

Reviewed by:	kib
This commit is contained in:
kevlo 2012-01-16 10:25:22 +00:00
parent 1725d903e6
commit ba45f0caad

View File

@ -150,10 +150,8 @@ tmpfs_mount(struct mount *mp)
return (EINVAL);
if (mp->mnt_flag & MNT_UPDATE) {
/* XXX: There is no support yet to update file system
* settings. Should be added. */
return EOPNOTSUPP;
if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
return (0);
}
vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY);