diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2006-05-26 00:32:21 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2006-05-26 00:32:21 +0000 |
commit | 055e2abe682260c3bd89cb00f5394de7b740ef8f (patch) | |
tree | bfa82c4a9f9f6f846eca600d11df0ab4efb807be /sys/isofs | |
parent | 7854550aa7231727cd1721be60fadda01bbf0834 (diff) | |
download | FreeBSD-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/isofs')
-rw-r--r-- | sys/isofs/cd9660/cd9660_vfsops.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index b68e59e..30aba51 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -128,9 +128,8 @@ static int cd9660_mount(struct mount *mp, struct thread *td) { struct vnode *devvp; - struct export_args *export; char *fspec; - int error, len; + int error; mode_t accessmode; struct nameidata ndp; struct iso_mnt *imp = 0; @@ -145,15 +144,10 @@ cd9660_mount(struct mount *mp, struct thread *td) return (error); imp = VFSTOISOFS(mp); - /* - * If updating, check whether changing from read-only to - * read/write; if there is no device name, that's all we do. - */ + if (mp->mnt_flag & MNT_UPDATE) { - error = vfs_getopt(mp->mnt_optnew, - "export", (void **)&export, &len); - if (error == 0 && len == sizeof *export && export->ex_flags) - return (vfs_export(mp, export)); + if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) + return (0); } /* * Not an update, or updating the name: look up the name |