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/ufs | |
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/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 7c021e7..a42a217 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -130,7 +130,6 @@ ffs_mount(struct mount *mp, struct thread *td) int error, flags; mode_t accessmode; struct nameidata ndp; - struct export_args export; char *fspec; if (vfs_filteropt(mp->mnt_optnew, ffs_opts)) @@ -181,13 +180,6 @@ ffs_mount(struct mount *mp, struct thread *td) if (vfs_getopt(mp->mnt_optnew, "update", NULL, NULL) == 0) mp->mnt_flag |= MNT_UPDATE; - export.ex_root = -2; /* DEFAULT_ROOTID */ - - if (mp->mnt_flag & MNT_RDONLY) - export.ex_flags = MNT_EXRDONLY; - else - export.ex_flags = 0; - /* * If updating, check whether changing from read-only to * read/write; if there is no device name, that's all we do. @@ -329,17 +321,7 @@ ffs_mount(struct mount *mp, struct thread *td) */ if ((fs->fs_flags & FS_ACLS) != 0) mp->mnt_flag |= MNT_ACLS; - /* - * If not updating name, process export requests. - */ - error = 0; - if (vfs_getopt(mp->mnt_optnew, "export", NULL, NULL) == 0) { - error = vfs_copyopt(mp->mnt_optnew, "export", - &export, sizeof export); - } - if (error == 0 && export.ex_flags != 0) - return (vfs_export(mp, &export)); /* * If this is a snapshot request, take the snapshot. */ |