Re: NFS mountned directory and apache2 (2.5.47)

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Fri Nov 15 2002 - 15:16:16 EST


>>>>> " " == 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/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:39 EST