Remove calls to vfs_export() for exporting a filesystem for NFS mounting
from individual filesystems. Call it instead in vfs_mount.c, after we call VFS_MOUNT() for a specific filesystem.
This commit is contained in:
parent
5eb304a91a
commit
23badd1016
@ -191,7 +191,6 @@ udf_mount(struct mount *mp, struct thread *td)
|
||||
{
|
||||
struct vnode *devvp; /* vnode of the mount device */
|
||||
struct udf_mnt *imp = 0;
|
||||
struct export_args *export;
|
||||
struct vfsoptlist *opts;
|
||||
char *fspec, *cs_disk, *cs_local;
|
||||
int error, len, *udf_flags;
|
||||
@ -217,13 +216,7 @@ udf_mount(struct mount *mp, struct thread *td)
|
||||
return (EINVAL);
|
||||
|
||||
if (mp->mnt_flag & MNT_UPDATE) {
|
||||
if (fspec == NULL) {
|
||||
error = vfs_getopt(opts, "export", (void **)&export,
|
||||
&len);
|
||||
if (error || len != sizeof(struct export_args))
|
||||
return (EINVAL);
|
||||
return (vfs_export(mp, export));
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
/* Check that the mount device exists */
|
||||
|
Loading…
Reference in New Issue
Block a user