diff options
| author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2006-06-17 20:02:28 +0000 |
|---|---|---|
| committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2006-06-17 20:02:28 +0000 |
| commit | f2dfdbc75c52c32c72ef9ecbb8b66cf01b28926c (patch) | |
| tree | 1f4f593580cdba0201494da3847bbb318102df87 /sys/gnu | |
| parent | 27fbed3c425c050c731db24d926fc9f304c1a9ea (diff) | |
Notes
Diffstat (limited to 'sys/gnu')
| -rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vfsops.c | 11 | ||||
| -rw-r--r-- | sys/gnu/fs/reiserfs/reiserfs_vfsops.c | 6 |
2 files changed, 5 insertions, 12 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c index 0a288cd8679b..6b6e672e084d 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); } } /* diff --git a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c index db9511260ee0..bbc669567206 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 |
