Messages in this thread | | | Date | Fri, 15 Nov 2002 21:16:16 +0100 | Subject | Re: NFS mountned directory and apache2 (2.5.47) | From | Trond Myklebust <> |
| |
>>>>> " " == Petr Vandrovec <VANDROVE@vc.cvut.cz> writes:
> It does not change anything on the brokeness of apache2 (or > maybe glibc). It must be able to revert to read/write loop if > sendfile fails with EINVAL. There is no guarantee that existing > sendfile() API means that you can use it with all filesystems.
I disagree. Sendfile can *always* be emulated using the standard file 'read' method.
For most filesystems, that means just reading directly from the page cache, and that is precisely what generic_file_sendfile() does. IIRC, the sendfile() inode op was added so that those few filesystems which don't support direct reading of the page cache could roll their own.
Cheers, Trond - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |