diff options
author | bp <bp@FreeBSD.org> | 2000-09-05 09:02:07 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2000-09-05 09:02:07 +0000 |
commit | 64ac0aa678e382d03d7bad1b3c1401222e4bc7e7 (patch) | |
tree | e7cfe6afe4dacc7a1ef0b7d39a7453db9fee0a61 /sys/fs/nullfs/null.h | |
parent | 106f8e14c88b3d49326a76d131a37eaaf6f29ed4 (diff) | |
download | FreeBSD-src-64ac0aa678e382d03d7bad1b3c1401222e4bc7e7.zip FreeBSD-src-64ac0aa678e382d03d7bad1b3c1401222e4bc7e7.tar.gz |
Various cleanups towards make nullfs functional (it is still broken
at this point):
Replace all '#ifdef DEBUG' with '#ifdef NULLFS_DEBUG' and add NULLFSDEBUG
macro.
Protect nullfs hash table with lockmgr.
Use proper order of operations when freeing mnt_data.
Return correct fsid in the null_getattr().
Add null_open() function to catch MNT_NODEV (obtained from NetBSD).
Add null_rename() to catch cross-fs rename operations (submitted by
Ustimenko Semen <semen@iclub.nsu.ru>)
Remove duplicate $FreeBSD$ tags.
Diffstat (limited to 'sys/fs/nullfs/null.h')
-rw-r--r-- | sys/fs/nullfs/null.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/fs/nullfs/null.h b/sys/fs/nullfs/null.h index f825ee8..a5ebf87 100644 --- a/sys/fs/nullfs/null.h +++ b/sys/fs/nullfs/null.h @@ -62,6 +62,7 @@ struct null_node { #define NULLTOV(xp) ((xp)->null_vnode) int nullfs_init(struct vfsconf *vfsp); +int nullfs_uninit(struct vfsconf *vfsp); int null_node_create(struct mount *mp, struct vnode *target, struct vnode **vpp); int null_bypass(struct vop_generic_args *ap); @@ -73,5 +74,16 @@ struct vnode *null_checkvp(struct vnode *vp, char *fil, int lno); #endif extern vop_t **null_vnodeop_p; +extern struct lock null_hashlock; + +#ifdef MALLOC_DECLARE +MALLOC_DECLARE(M_NULLFSNODE); +#endif + +#ifdef NULLFS_DEBUG +#define NULLFSDEBUG(format, args...) printf(format ,## args) +#else +#define NULLFSDEBUG(format, args...) +#endif /* NULLFS_DEBUG */ #endif /* _KERNEL */ |