diff options
Diffstat (limited to 'sys/ufs/ufs/dir.h')
-rw-r--r-- | sys/ufs/ufs/dir.h | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/sys/ufs/ufs/dir.h b/sys/ufs/ufs/dir.h index 7fdf465b6f1..b16c9a9256d 100644 --- a/sys/ufs/ufs/dir.h +++ b/sys/ufs/ufs/dir.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dir.h,v 1.5 1996/06/27 06:42:08 downsj Exp $ */ +/* $OpenBSD: dir.h,v 1.6 1997/05/30 08:34:56 downsj Exp $ */ /* $NetBSD: dir.h,v 1.8 1996/03/09 19:42:41 scottr Exp $ */ /* @@ -155,44 +155,4 @@ struct odirtemplate { u_int16_t dotdot_namlen; char dotdot_name[4]; /* ditto */ }; - -#ifdef _KERNEL -/* - * For lack of a better place... - * - * This structure defines a set of function pointers, for managing rouge - * ufs-like filesystems in vnop code. Most have to do with directories. - */ - -struct componentname; -struct vnode; -struct inode; -struct ucred; -struct ufs_dirops { - int (*dirremove) __P((struct vnode *, struct componentname *)); - int (*direnter) __P((struct inode *, struct vnode *, - struct componentname *)); - int (*dirempty) __P((struct inode *, ino_t, struct ucred *)); - int (*dirrewrite) __P((struct inode *, struct inode *, - struct componentname *)); - int (*checkpath) __P((struct inode *, struct inode *, - struct ucred *)); -}; - -/* - * Macros for accessing the above. - */ -#define VN_DIRREMOVE(vn, cm) \ - VFSTOUFS(vn->v_mount)->um_dirops->dirremove(vn, cm) -#define VN_DIRENTER(in, vn, cm) \ - VFSTOUFS(vn->v_mount)->um_dirops->direnter(in, vn, cm) -#define VN_DIREMPTY(vn, in, it, uc) \ - VFSTOUFS(vn->v_mount)->um_dirops->dirempty(in, it, uc) -#define VN_DIRREWRITE(vn, in1, in2, cm) \ - VFSTOUFS(vn->v_mount)->um_dirops->dirrewrite(in1, in2, cm) -#define VN_CHECKPATH(vn, in1, in2, uc) \ - VFSTOUFS(vn->v_mount)->um_dirops->checkpath(in1, in2, uc) - -#endif /* _KERNEL */ - #endif /* !_DIR_H_ */ |