freebsd-nq/sys/fs
Robert Drehmel e7aabf96a4 Fix our NTFS readdir function.
To check a directory's in-use bitmap bit by bit, we use
a pointer to an 8 bit wide unsigned value.

The index used to dereference this pointer is calculated
by shifting the bit index right 3 bits.  Then we do a
logical AND with the bit# represented by the lower 3
bits of the bit index.

This is an idiomatic way of iterating through a bit map
with simple bitwise operations.

This commit fixes the bug that we only checked bits
3:0 of each 8 bit chunk, because we only used bits 1:0
of the bit index for the bit# in the current 8 bit value.
This resulted in files not being returned by getdirentries(2).

Change the type of the bit map pointer from `char *' to
`u_int8_t *'.
2005-05-06 00:06:06 +00:00
..
cd9660 - Change all filesystems and vfs_cache to relock the dvp once the child is 2005-04-13 10:59:09 +00:00
coda - Change all filesystems and vfs_cache to relock the dvp once the child is 2005-04-13 10:59:09 +00:00
deadfs - Deadfs may now use the standard vop lock, get rid of dead_lock(). 2005-03-13 12:06:20 +00:00
devfs - In devfs_open() and devfs_close() grab Giant if the driver sets NEEDGIANT. 2005-05-01 00:56:34 +00:00
fdescfs - Update vfs_root implementations to match the new prototype. None of 2005-03-24 07:36:16 +00:00
fifofs - The VI_DOOMED flag now signals the end of a vnode's relationship with 2005-03-13 12:18:25 +00:00
hpfs - Change all filesystems and vfs_cache to relock the dvp once the child is 2005-04-13 10:59:09 +00:00
msdosfs Disable negative name caching for msdosfs to work around a bug. 2005-04-16 23:47:19 +00:00
ntfs Fix our NTFS readdir function. 2005-05-06 00:06:06 +00:00
nullfs - As this is presently the one and only place where duplicate acquires of 2005-04-22 22:42:44 +00:00
nwfs - Change all filesystems and vfs_cache to relock the dvp once the child is 2005-04-13 10:59:09 +00:00
portalfs - We no longer have to bother with PDIRUNLOCK, lookup() handles it for us. 2005-03-28 09:34:36 +00:00
procfs Don't export major,minor, instead export tty name. 2005-03-15 11:05:11 +00:00
pseudofs Fix an old pasto. 2005-04-30 16:27:20 +00:00
smbfs Fix breakage on alpha. 2005-05-05 07:02:51 +00:00
udf Correct typo. 2005-04-14 14:40:09 +00:00
umapfs - Update vfs_root implementations to match the new prototype. None of 2005-03-24 07:36:16 +00:00
unionfs - Set the v_object pointer after a successful VOP_OPEN(). This isn't a 2005-05-03 11:05:33 +00:00