Return EOPNOTSUPP since we only support update mounts for NFS export.
Spotted by: trociny
This commit is contained in:
parent
bdae70b9cd
commit
1a0c72b3fe
@ -150,8 +150,12 @@ tmpfs_mount(struct mount *mp)
|
|||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
if (mp->mnt_flag & MNT_UPDATE) {
|
if (mp->mnt_flag & MNT_UPDATE) {
|
||||||
|
/*
|
||||||
|
* Only support update mounts for NFS export.
|
||||||
|
*/
|
||||||
if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
|
if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
|
||||||
return (0);
|
return (0);
|
||||||
|
return (EOPNOTSUPP);
|
||||||
}
|
}
|
||||||
|
|
||||||
vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY);
|
vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user