[PATCH] Avoid deliberate cleanup when sendfile is not supported

Anoop C S anoopcs at redhat.com
Tue Jan 10 16:18:05 UTC 2017


On Tue, 2017-01-10 at 19:56 +0530, Anoop C S wrote:
> Hi,
> 
> Please find the attached patch which handles ENOTSUP when 'use sendfile' is incorrectly configured
> for a particular share.
> 
> Tested the patch with vfs_glusterfs module and could confirm that this change avoids the
> server_cleanup and the resulting error from Windows client (Win 8.1).
> 

Attached is a screenshot of the error from Windows with the following log in server:

[2017/01/10 14:29:31.050709,  0] ../source3/smbd/smb2_read.c:248(smb2_sendfile_send_data)
  smb2_sendfile_send_data: sendfile failed for file Fedora-Workstation-Live-x86_64-25-1.3.iso
(Operation not supported) for client ipv4:192.168.122.15:49720. Terminating

> Thanks,
> --Anoop C S.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2017-01-10 20-00-13.png
Type: image/png
Size: 18764 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170110/de028835/Screenshotfrom2017-01-1020-00-13.png>


More information about the samba-technical mailing list