[linux-cifs-client] CIFS mounted files are corrupt when passed
to apache web clients
Chris G
cl at isbd.net
Thu Nov 29 08:43:23 GMT 2007
On Wed, Nov 28, 2007 at 12:58:54PM -0800, JNaujok wrote:
>
> I know, replying to yourself is bad form and all...
>
I really, really have never understood why. This message is a perfect
case in point, you've found the solution by other means and both for
information and politeness you're telling us. I try always to do
this in similar situations.
> I've been working with Jeff Layton on this (from redhat) and we have a
> work-around for the problem:
>
> in httpd.conf set
>
> EnableSendfile: off
>
> If you do this, the problem goes away.
>
> It appears from the trace that apache requests the file be opened, but then
> "doesn't actually do anything* and requests that the file be closed. I'd
> imagine that the "sendfile()" system call isn't friendly with CIFS (which it
> does state in the Apache documentation, sort of.)
>
> Anyway, thanks again to Jeff for helping with this.
>
> >From Jeff Layton's mail:
> > > Actually...an even easier quick test than stracing might be to try
> > > disabling sendfile() in apache:
> >
> > > http://httpd.apache.org/docs/2.0/mod/core.html#enablesendfile
> >
--
Chris Green
More information about the linux-cifs-client
mailing list