[linux-cifs-client] CIFS mounted files are corrupt when passed to apache web clients

Jeff Layton jlayton at redhat.com
Wed Nov 28 21:11:43 GMT 2007


On Wed, 28 Nov 2007 12:58:54 -0800 (PST)
JNaujok <Jester at devista.org> wrote:

> 
> I know, replying to yourself is bad form and all...
> 
> 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.
> 

Well, we *should* have cifs either work correctly or error outright
when using sendfile(). Now that we know that the problem is related to
sendfile(), we might be able to cook up a simpler reproducer. I'll try
to do that when I get some time...

-- 
Jeff Layton <jlayton at redhat.com>


More information about the linux-cifs-client mailing list