diff options
author | assar <assar@cvs.openbsd.org> | 2000-02-07 04:57:20 +0000 |
---|---|---|
committer | assar <assar@cvs.openbsd.org> | 2000-02-07 04:57:20 +0000 |
commit | 6f7e6bffc9d5d686eb1bdf9b027266f64db28754 (patch) | |
tree | 1b456f9a4be5902545c6b6f0805e173ab4dc3195 /sys/ufs/mfs | |
parent | 3510e94919e26ce8c81fffcb220fc932c7d4aeb3 (diff) |
update to use new checkexp vfs operation
Diffstat (limited to 'sys/ufs/mfs')
-rw-r--r-- | sys/ufs/mfs/mfs_extern.h | 5 | ||||
-rw-r--r-- | sys/ufs/mfs/mfs_vfsops.c | 19 |
2 files changed, 21 insertions, 3 deletions
diff --git a/sys/ufs/mfs/mfs_extern.h b/sys/ufs/mfs/mfs_extern.h index 6adbf5a77f8..071779b2be7 100644 --- a/sys/ufs/mfs/mfs_extern.h +++ b/sys/ufs/mfs/mfs_extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_extern.h,v 1.7 1998/08/06 19:35:09 csapuntz Exp $ */ +/* $OpenBSD: mfs_extern.h,v 1.8 2000/02/07 04:57:18 assar Exp $ */ /* $NetBSD: mfs_extern.h,v 1.4 1996/02/09 22:31:27 christos Exp $ */ /*- @@ -44,6 +44,7 @@ struct statfs; struct ucred; struct vnode; struct vfsconf; +struct mbuf; __BEGIN_DECLS /* mfs_vfsops.c */ @@ -55,6 +56,8 @@ int mfs_start __P((struct mount *, int, struct proc *)); int mfs_statfs __P((struct mount *, struct statfs *, struct proc *)); int mfs_init __P((struct vfsconf *)); +int mfs_checkexp __P((struct mount *mp, struct mbuf *nam, + int *extflagsp, struct ucred **credanonp)); /* mfs_vnops.c */ int mfs_open __P((void *)); diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index 9f784417eb0..2be4916d8f3 100644 --- a/sys/ufs/mfs/mfs_vfsops.c +++ b/sys/ufs/mfs/mfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_vfsops.c,v 1.11 1999/12/06 07:28:06 art Exp $ */ +/* $OpenBSD: mfs_vfsops.c,v 1.12 2000/02/07 04:57:18 assar Exp $ */ /* $NetBSD: mfs_vfsops.c,v 1.10 1996/02/09 22:31:28 christos Exp $ */ /* @@ -81,7 +81,8 @@ struct vfsops mfs_vfsops = { ffs_fhtovp, ffs_vptofh, mfs_init, - ffs_sysctl + ffs_sysctl, + mfs_checkexp }; /* @@ -299,3 +300,17 @@ mfs_statfs(mp, sbp, p) &sbp->mount_info.mfs_args, sizeof(struct mfs_args)); return (error); } + +/* + * check export permission, not supported + */ +/* ARGUSED */ +int +mfs_checkexp(mp, nam, exflagsp, credanonp) + register struct mount *mp; + struct mbuf *nam; + int *exflagsp; + struct ucred **credanonp; +{ + return (EOPNOTSUPP); +} |