summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2006-05-26 11:58:30 +0000
committerrodrigc <rodrigc@FreeBSD.org>2006-05-26 11:58:30 +0000
commite803af59ba8c8c3a5062a483fd521dfad13a254e (patch)
tree11369d4dcc9622dad0804d14f32c125aafefa166 /sys/gnu
parent7879ac129f63a7b5e09a9ba170e72922d4a1a91c (diff)
downloadFreeBSD-src-e803af59ba8c8c3a5062a483fd521dfad13a254e.zip
FreeBSD-src-e803af59ba8c8c3a5062a483fd521dfad13a254e.tar.gz
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
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/fs/reiserfs/reiserfs_vfsops.c6
1 files changed, 2 insertions, 4 deletions
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
OpenPOWER on IntegriCloud