Return EOPNOTSUPP since we only support update mounts for NFS export.
Spotted by: trociny
This commit is contained in:
parent
86b571509a
commit
e0d3195bd6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230252
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user