]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux: fix reading files larger than the chunk size
authorMarc Dionne <marc.c.dionne@gmail.com>
Sun, 15 May 2011 00:57:12 +0000 (20:57 -0400)
committerRuss Allbery <rra@debian.org>
Sun, 15 May 2011 06:48:04 +0000 (23:48 -0700)
commit386abad39443c73774fe1ec9144622e0dfa52955
treeb47422a050635fca4430e69ea6fba0dc9960471f
parent822b12e390aa8cca7044f661e9a6fb7c2da25957
Linux: fix reading files larger than the chunk size

Commit 2571b6285d5da8ef62ab38c3a938258ddd7bac4e fixed an issue with
the use of tmpfs as a disk cache and ftruncate() on files in AFS.
But it introduced a problem reading larger files as reported in
RT ticket 129880.

What should be compared against the current cache file size is the
offset into the current chunk, not the overall offset for the whole
file.

FIXES: 129880

Change-Id: I93008c8d0b1d70785b0b8a2e4289a04ac06cbbef
src/afs/LINUX/osi_vnodeops.c