diff options
author | marcel <marcel@FreeBSD.org> | 2014-07-22 17:30:05 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2014-07-22 17:30:05 +0000 |
commit | d784f2418c22e04fadccc3d5438789412f27d728 (patch) | |
tree | 18687aca8b3bdeab3ca75686f439ae9936df4436 /lib/libc/stdio/ftell.c | |
parent | 1e99f060b1397299290b06cd3726c08865bb3c6b (diff) | |
download | FreeBSD-src-d784f2418c22e04fadccc3d5438789412f27d728.zip FreeBSD-src-d784f2418c22e04fadccc3d5438789412f27d728.tar.gz |
In r264504, we prevented doing I/O for more than MAXPHYS by making
the assumption that consumers would respect bio_completed and/or
bio_resid to detect short reads. This assumption proved false and
file corruption was the result.
Create as many bios as we need to satisfy the original request.
Check the cached chunk every time we need to do I/O to increase the
hit rate.
Obtained from: junipre Networks, Inc.
MFC after: 1 week
Diffstat (limited to 'lib/libc/stdio/ftell.c')
0 files changed, 0 insertions, 0 deletions