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.

Approved by:	dumbbell
This commit is contained in:
Craig Rodrigues 2006-05-26 11:58:30 +00:00
parent 9b188af13c
commit 4ca073e86c

View File

@ -79,7 +79,6 @@ reiserfs_mount(struct mount *mp, struct thread *td)
char *path, *fspec;
struct vnode *devvp;
struct vfsoptlist *opts;
struct export_args *export;
struct reiserfs_mount *rmp;
struct reiserfs_sb_info *sbi;
struct nameidata nd, *ndp = &nd;
@ -104,9 +103,8 @@ reiserfs_mount(struct mount *mp, struct thread *td)
/* Handle MNT_UPDATE (mp->mnt_flag) */
if (mp->mnt_flag & MNT_UPDATE) {
/* For now, only NFS export is supported. */
error = vfs_getopt(opts, "export", (void **)&export, &len);
if (error == 0 && len == sizeof(*export) && export->ex_flags)
return (vfs_export(mp, export));
if (vfs_flagopt(opts, "export", NULL, 0))
return (0);
}
/* Not an update, or updating the name: look up the name