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

Derrick Brashear shadow@gmail.com
Fri, 9 Nov 2007 16:07:18 -0500


On Nov 6, 2007 12:02 AM, Anders Kaseorg <andersk@mit.edu> wrote:
> 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>
>

Also, this is in CVS and will be in the next release.