[OpenAFS-devel] Patch: make sendfile() work on kernel 2.6.23

Anders Kaseorg andersk@MIT.EDU
Tue, 06 Nov 2007 00:02:42 -0500


Kernel 2.6.23 does away with the sendfile method of struct
file_operations, and instead implements sendfile() using the
splice_write and splice_read methods introduced in 2.6.17.  OpenAFS does
not implement these methods, and as a result, sendfile() out of AFS
returns EINVAL.  This makes Apache serve blank pages from an AFS
docroot, unless you turn EnableSendfile Off.

Here is an OpenAFS patch to implement splice_write and splice_read:
<http://anders.kaseorg.com/pub/patches/openafs-splice.patch>

Anders