Return EOPNOTSUPP since we only support update mounts for NFS export.
Spotted by: trociny
This commit is contained in:
parent
86b571509a
commit
e0d3195bd6
@ -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…
x
Reference in New Issue
Block a user