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:
Craig Rodrigues 2006-05-28 20:09:18 +00:00
parent a58327bd09
commit ebbf93fd4c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159019

View file

@ -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);
}
/*