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/fs/msdosfs/msdosfs_vfsops.c | |
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/fs/msdosfs/msdosfs_vfsops.c')
-rw-r--r-- | sys/fs/msdosfs/msdosfs_vfsops.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index 93a58fc..a07b567 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -243,7 +243,6 @@ static int msdosfs_mount(struct mount *mp, struct thread *td) { struct vnode *devvp; /* vnode for blk device to mount */ - struct export_args export; /* msdosfs specific mount control block */ struct msdosfsmount *pmp = NULL; struct nameidata ndp; @@ -261,16 +260,12 @@ msdosfs_mount(struct mount *mp, struct thread *td) if (mp->mnt_flag & MNT_UPDATE) { pmp = VFSTOMSDOSFS(mp); - error = vfs_copyopt(mp->mnt_optnew, "export", - &export, sizeof export); - if (error == 0 && export.ex_flags != 0) { - /* - * Process export requests. - */ - if ((export.ex_flags & MNT_EXPORTED) != 0 && - (pmp->pm_flags & MSDOSFS_LARGEFS) != 0) + if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) { + /* Process export requests. */ + if ((pmp->pm_flags & MSDOSFS_LARGEFS) != 0) return (EOPNOTSUPP); - return (vfs_export(mp, &export)); + else + return (0); } if (!(pmp->pm_flags & MSDOSFSMNT_RONLY) && vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0)) { |