summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ufs/ffs/ffs_vfsops.c')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c18
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.
*/
OpenPOWER on IntegriCloud