Re: NFS mountned directory and apache2 (2.5.47)

Trond Myklebust (trond.myklebust@fys.uio.no)
Fri, 15 Nov 2002 21:53:03 +0100


>> I disagree. Sendfile can *always* be emulated using the
>> standard file 'read' method.

> Linus removed that in early 2.5 because it led to kmap()
> deadlocks. sendfile can fail with EINVAL and userspace must
> not rely on it working on any object.

Fair enough. The kernel may not be the appropriate place for providing
such an emulation, but there's no reason why glibc shouldn't be able
to do so for the case where sendfile returns EINVAL.

However none of this changes the matter of the NFS client. The latter
*does* support a pagecache, and so the one-line patch is appropriate.

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/