cvs commit: src/sys/fs/ntfs ntfs_subr.c
Tim J. Robbins
tjr at FreeBSD.org
Fri Jun 20 07:52:54 PDT 2003
tjr 2003/06/20 07:52:52 PDT
FreeBSD src repository
Modified files:
sys/fs/ntfs ntfs_subr.c
Log:
Merge from NetBSD src/sys/ntfs/ntfs_subr.c 1.5 & 1.30 (jdolecek):
- Avoid calling bread() with different sizes on the same blkno.
Although the buffer cache is designed to handle differing size
buffers, it erroneously tries to write the incorrectly-sized buffer
buffer back to disk before reading the correctly-sized one, even
when it's not dirty. This behaviour caused a panic for read-only
NTFS mounts when INVARIANTS was enabled ("bundirty: buffer x still
on queue y"), reported by NAKAJI Hiroyuki.
- Fix a bug in the code handling holes: a variable was incremented
instead of decremented, which could cause an infinite loop.
Revision Changes Path
1.30 +15 -1 src/sys/fs/ntfs/ntfs_subr.c
More information about the cvs-src
mailing list