From cdc83afc7f1e444c4646840f48592b7ff524fbea Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 25 Apr 2001 07:07:52 +0000 Subject: Move the netexport structure from the fs-specific mountstructure to struct mount. This makes the "struct netexport *" paramter to the vfs_export and vfs_checkexport interface unneeded. Consequently that all non-stacking filesystems can use vfs_stdcheckexp(). At the same time, make it a pointer to a struct netexport in struct mount, so that we can remove the bogus AF_MAX and #include from --- sys/fs/cd9660/cd9660_vfsops.c | 30 ++---------------------------- sys/fs/cd9660/iso.h | 1 - 2 files changed, 2 insertions(+), 29 deletions(-) (limited to 'sys/fs/cd9660') diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c index 0228988..276718f 100644 --- a/sys/fs/cd9660/cd9660_vfsops.c +++ b/sys/fs/cd9660/cd9660_vfsops.c @@ -73,8 +73,6 @@ static int cd9660_root __P((struct mount *, struct vnode **)); static int cd9660_statfs __P((struct mount *, struct statfs *, struct proc *)); static int cd9660_vget __P((struct mount *, ino_t, struct vnode **)); static int cd9660_fhtovp __P((struct mount *, struct fid *, struct vnode **)); -static int cd9660_checkexp __P((struct mount *, struct sockaddr *, - int *, struct ucred **)); static int cd9660_vptofh __P((struct vnode *, struct fid *)); static struct vfsops cd9660_vfsops = { @@ -87,7 +85,7 @@ static struct vfsops cd9660_vfsops = { vfs_stdsync, cd9660_vget, cd9660_fhtovp, - cd9660_checkexp, + vfs_stdcheckexp, cd9660_vptofh, cd9660_init, cd9660_uninit, @@ -207,7 +205,7 @@ cd9660_mount(mp, path, data, ndp, p) if (mp->mnt_flag & MNT_UPDATE) { imp = VFSTOISOFS(mp); if (args.fspec == 0) - return (vfs_export(mp, &imp->im_export, &args.export)); + return (vfs_export(mp, &args.export)); } /* * Not an update, or updating the name: look up the name @@ -653,30 +651,6 @@ cd9660_fhtovp(mp, fhp, vpp) } int -cd9660_checkexp(mp, nam, exflagsp, credanonp) - struct mount *mp; - struct sockaddr *nam; - int *exflagsp; - struct ucred **credanonp; -{ - register struct netcred *np; - register struct iso_mnt *imp; - - imp = VFSTOISOFS(mp); - - /* - * Get the export permission structure for this tuple. - */ - np = vfs_export_lookup(mp, &imp->im_export, nam); - if (np == NULL) - return (EACCES); - - *exflagsp = np->netc_exflags; - *credanonp = &np->netc_anon; - return (0); -} - -int cd9660_vget(mp, ino, vpp) struct mount *mp; ino_t ino; diff --git a/sys/fs/cd9660/iso.h b/sys/fs/cd9660/iso.h index 2da3d82..b62c723 100644 --- a/sys/fs/cd9660/iso.h +++ b/sys/fs/cd9660/iso.h @@ -235,7 +235,6 @@ struct iso_mnt { int im_bmask; int volume_space_size; - struct netexport im_export; char root[ISODCL (157, 190)]; int root_extent; -- cgit v1.1