lkml.org 
[lkml]   [2002]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: NFS mountned directory and apache2 (2.5.47)
From
>>>>> " " == 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/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.040 / U:0.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site