Modify MNT_UPDATE behavior for nullfs so that it does not
return EOPNOTSUPP if an "export" parameter was passed in. This should allow nullfs mounts to be NFS exported. PR: kern/87906 MFC after: 1 week
This commit is contained in:
parent
624f77708d
commit
d1d9c4f5bc
@ -89,8 +89,13 @@ nullfs_mount(struct mount *mp, struct thread *td)
|
|||||||
* Update is a no-op
|
* Update is a no-op
|
||||||
*/
|
*/
|
||||||
if (mp->mnt_flag & MNT_UPDATE) {
|
if (mp->mnt_flag & MNT_UPDATE) {
|
||||||
return (EOPNOTSUPP);
|
/*
|
||||||
/* return VFS_MOUNT(MOUNTTONULLMOUNT(mp)->nullm_vfs, path, data, ndp, td);*/
|
* Only support update mounts for NFS export.
|
||||||
|
*/
|
||||||
|
if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
|
||||||
|
return (0);
|
||||||
|
else
|
||||||
|
return (EOPNOTSUPP);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user