summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs/ext2fs
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2006-05-26 00:32:21 +0000
committerrodrigc <rodrigc@FreeBSD.org>2006-05-26 00:32:21 +0000
commit055e2abe682260c3bd89cb00f5394de7b740ef8f (patch)
treebfa82c4a9f9f6f846eca600d11df0ab4efb807be /sys/gnu/fs/ext2fs
parent7854550aa7231727cd1721be60fadda01bbf0834 (diff)
downloadFreeBSD-src-055e2abe682260c3bd89cb00f5394de7b740ef8f.zip
FreeBSD-src-055e2abe682260c3bd89cb00f5394de7b740ef8f.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.
Diffstat (limited to 'sys/gnu/fs/ext2fs')
-rw-r--r--sys/gnu/fs/ext2fs/ext2_vfsops.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c
index 1bccb61..38f9e25 100644
--- a/sys/gnu/fs/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c
@@ -129,7 +129,6 @@ ext2_mount(mp, td)
struct mount *mp;
struct thread *td;
{
- struct export_args *export;
struct vfsoptlist *opts;
struct vnode *devvp;
struct ext2mount *ump = 0;
@@ -233,13 +232,9 @@ ext2_mount(mp, td)
fs->s_rd_only = 0;
mp->mnt_flag &= ~MNT_RDONLY;
}
- if (fspec == NULL) {
- error = vfs_getopt(opts, "export", (void **)&export,
- &len);
- if (error || len != sizeof(struct export_args))
- return (EINVAL);
- /* Process export requests. */
- return (vfs_export(mp, export));
+ if (vfs_flagopt(opts, "export", NULL, 0)) {
+ /* Process export requests in vfs_mount.c. */
+ return (error);
}
}
/*
OpenPOWER on IntegriCloud