diff options
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vfsops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index 8316c70..e04c410 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -150,8 +150,12 @@ tmpfs_mount(struct mount *mp) return (EINVAL); if (mp->mnt_flag & MNT_UPDATE) { + /* + * Only support update mounts for NFS export. + */ if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) return (0); + return (EOPNOTSUPP); } vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY); |