[mythtv-users] Recordings on smb nas and MythWeb

David Brodbeck gull at gull.us
Tue Aug 19 01:51:50 UTC 2008


Shawn Flynn wrote:
> David Brodbeck wrote on August 12, 2008 6:26 PM:
>> There's a bug in the Linux CIFS driver that's triggered by Apache when 
>> it tries to send images.  You can work around it by adding the following 
>> to your Apache server configuration:
>>
>> EnableSendfile off
>>
>> This should probably go in a MythWeb FAQ somewhere, but I'm not sure
> where.
> 
> Excellent find. Your google-fu is stronger than mine. When I searched soon
> after 0.21 came out, all I could find was an explanation as to what the
> problem was (a bug in linux CIFS that was exposed by the uPnP code used by
> mythweb). I could not find a work-around for it other than "use nfs
> instead."

I actually don't think Mythweb has much to do with it; it's a more 
general Apache problem.  My Apache server won't serve *any* images off 
of an SMB share without that configuration change; they all come back as 
0-length files.  I had never noticed it before because I never really 
tried to get thumbnails working on my MythVideo share before 0.21; there 
was no good interface for it in MythWeb until then, and setting them up 
by hand was just too much work. ;)

Here's the official Apache documentation about it:
http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile

> This question seems to come up often enough that I would think the best spot
> to document it would be right in the Mythweb README. I'd be happy to write a
> doc patch against the current README if somebody would be willing to test it
> for me.

It works for me but I'd like to see the original poster try it.  I 
disabled it in the main server configuration, but it might be sufficient 
to disable it for the directories that MythWeb serves thumbnails from.



More information about the mythtv-users mailing list