Thanks Dennis. Forwarding this to the bug report since it might be useful to others and may help narrow down the cause. Unfortunately this workaround did not work for me - I didn't have oplocks in the smb.conf to begin with (and I tried adding it and related options to no avail) :(
On 17 November 2015 at 12:11, Dennis Linnell <[email protected]> wrote: > Regarding your Debian bug report #803941, "samba: cp and cat return an > endless stream of 0s when reading a file on a samba share", I > encountered the same symptom. After I removed "oplocks = no" from > smb.conf (thereby taking the default of oplocks = yes) and restarted > smbd on the server, the symptom disappeared. Consider trying that if it > is applicable to your configuration. > > Thanks for reporting the bug. Your report was helpful to me. > > Best regards, > Dennis

