summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-04-25 07:07:52 +0000
committerphk <phk@FreeBSD.org>2001-04-25 07:07:52 +0000
commitcdc83afc7f1e444c4646840f48592b7ff524fbea (patch)
tree1d205c2b7e9b1a72323178bdb64ac082cbe816a5 /sys/fs/msdosfs
parent3a77c500a93ed027c8d6959da8f6ecc3c7752441 (diff)
downloadFreeBSD-src-cdc83afc7f1e444c4646840f48592b7ff524fbea.zip
FreeBSD-src-cdc83afc7f1e444c4646840f48592b7ff524fbea.tar.gz
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 <net/radix.h> from <sys/mount.h>
Diffstat (limited to 'sys/fs/msdosfs')
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c24
-rw-r--r--sys/fs/msdosfs/msdosfsmount.h1
2 files changed, 2 insertions, 23 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index 6cda3bd..2f04def 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -93,8 +93,6 @@ static int mountmsdosfs __P((struct vnode *devvp, struct mount *mp,
struct proc *p, struct msdosfs_args *argp));
static int msdosfs_fhtovp __P((struct mount *, struct fid *,
struct vnode **));
-static int msdosfs_checkexp __P((struct mount *, struct sockaddr *,
- int *, struct ucred **));
static int msdosfs_mount __P((struct mount *, char *, caddr_t,
struct nameidata *, struct proc *));
static int msdosfs_root __P((struct mount *, struct vnode **));
@@ -292,7 +290,7 @@ msdosfs_mount(mp, path, data, ndp, p)
/*
* Process export requests.
*/
- return (vfs_export(mp, &pmp->pm_export, &args.export));
+ return (vfs_export(mp, &args.export));
}
}
/*
@@ -932,24 +930,6 @@ msdosfs_fhtovp(mp, fhp, vpp)
}
static int
-msdosfs_checkexp(mp, nam, exflagsp, credanonp)
- struct mount *mp;
- struct sockaddr *nam;
- int *exflagsp;
- struct ucred **credanonp;
-{
- struct msdosfsmount *pmp = VFSTOMSDOSFS(mp);
- struct netcred *np;
-
- np = vfs_export_lookup(mp, &pmp->pm_export, nam);
- if (np == NULL)
- return (EACCES);
- *exflagsp = np->netc_exflags;
- *credanonp = &np->netc_anon;
- return (0);
-}
-
-static int
msdosfs_vptofh(vp, fhp)
struct vnode *vp;
struct fid *fhp;
@@ -976,7 +956,7 @@ static struct vfsops msdosfs_vfsops = {
msdosfs_sync,
vfs_stdvget,
msdosfs_fhtovp,
- msdosfs_checkexp,
+ vfs_stdcheckexp,
msdosfs_vptofh,
msdosfs_init,
msdosfs_uninit,
diff --git a/sys/fs/msdosfs/msdosfsmount.h b/sys/fs/msdosfs/msdosfsmount.h
index da49190..1c9a890 100644
--- a/sys/fs/msdosfs/msdosfsmount.h
+++ b/sys/fs/msdosfs/msdosfsmount.h
@@ -92,7 +92,6 @@ struct msdosfsmount {
u_int pm_curfat; /* current fat for FAT32 (0 otherwise) */
u_int *pm_inusemap; /* ptr to bitmap of in-use clusters */
u_int pm_flags; /* see below */
- struct netexport pm_export; /* export information */
u_int16_t pm_u2w[128]; /* Local->Unicode table */
u_int8_t pm_ul[128]; /* Local upper->lower table */
u_int8_t pm_lu[128]; /* Local lower->upper table */
OpenPOWER on IntegriCloud