mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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
a58327bd09
commit
ebbf93fd4c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159019
|
@ -89,8 +89,13 @@ nullfs_mount(struct mount *mp, struct thread *td)
|
|||
* Update is a no-op
|
||||
*/
|
||||
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…
Reference in a new issue