From e803af59ba8c8c3a5062a483fd521dfad13a254e Mon Sep 17 00:00:00 2001 From: rodrigc Date: Fri, 26 May 2006 11:58:30 +0000 Subject: 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 --- sys/gnu/fs/reiserfs/reiserfs_vfsops.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/gnu') diff --git a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c index 2aaf663..b6436ae 100644 --- a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c +++ b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c @@ -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 -- cgit v1.1