summaryrefslogtreecommitdiffstats
path: root/sys/fs/tmpfs
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-01-17 01:25:53 +0000
committerkevlo <kevlo@FreeBSD.org>2012-01-17 01:25:53 +0000
commit1a0c72b3fe6333e317d2211ed9447ed6f8130f7f (patch)
tree6495091f549a2a5f9aed340d39149a2f6cf19afa /sys/fs/tmpfs
parentbdae70b9cd98bf6b9c7852a458268b5847a4de9d (diff)
downloadFreeBSD-src-1a0c72b3fe6333e317d2211ed9447ed6f8130f7f.zip
FreeBSD-src-1a0c72b3fe6333e317d2211ed9447ed6f8130f7f.tar.gz
Return EOPNOTSUPP since we only support update mounts for NFS export.
Spotted by: trociny
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r--sys/fs/tmpfs/tmpfs_vfsops.c4
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);
OpenPOWER on IntegriCloud