freebsd-src/sys/fs/ntfs
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
..
ntfs.h Convert to nmount. Add omount compat. 2004-12-06 20:22:16 +00:00
ntfs_compr.c
ntfs_compr.h
ntfs_iconv.c - Support for multibyte charsets in LIBICONV. 2003-09-26 20:26:25 +00:00
ntfs_ihash.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:10:42 +00:00
ntfs_ihash.h Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
ntfs_inode.h Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
ntfs_subr.c Fix our NTFS readdir function. 2005-05-06 00:06:06 +00:00
ntfs_subr.h - Support for multibyte charsets in LIBICONV. 2003-09-26 20:26:25 +00:00
ntfs_vfsops.c - Update vfs_root implementations to match the new prototype. None of 2005-03-24 07:36:16 +00:00
ntfs_vfsops.h make M_NTFSMNT and ntfs_calccfree() static 2005-02-10 12:09:49 +00:00
ntfs_vnops.c - Correct the dprintf format int the _lookup routine. 2005-03-28 14:26:01 +00:00
ntfsmount.h - Support for multibyte charsets in LIBICONV. 2003-09-26 20:26:25 +00:00