NetBSD/sys/ufs
thorpej 11afd11faa Add a new VNODE_LOCKDEBUG option, which enables checks in the VOP_*()
calls to ensure that the vnode lock state is as expected when the VOP
call is made.  Modify vnode_if.src to set the expected state according
to the documenting lock table for each VOP.  Modify vnode_if.sh to emit
the checks.

Notes:
- The checks are only performed if the vnode has the VLOCKSWORK bit
  set.  Some file systems (e.g. specfs) don't even bother with vnode
  locks, so of course the checks will fail.
- We can't actually run with VNODE_LOCKDEBUG because there are so many
  vnode locking problems, not the least of which is the "use SHARED for
  VOP_READ()" issue, which screws things up for the entire call chain.

Inspired by similar changes in OpenBSD, but implemented differently.
2004-09-21 03:10:35 +00:00
..
ext2fs Add a new VNODE_LOCKDEBUG option, which enables checks in the VOP_*() 2004-09-21 03:10:35 +00:00
ffs Add a new VNODE_LOCKDEBUG option, which enables checks in the VOP_*() 2004-09-21 03:10:35 +00:00
lfs change some members of struct buf from long to int. 2004-09-18 16:40:11 +00:00
mfs Call inittodr() from main(). Let file system code set the recorded `last 2004-07-05 07:28:45 +00:00
ufs Add a new VNODE_LOCKDEBUG option, which enables checks in the VOP_*() 2004-09-21 03:10:35 +00:00
Makefile
files.ufs Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD. 2004-05-25 14:54:55 +00:00