fixed: quell printf format warnings
copy: support chunked reads so that CFile internal buffer is eliminated

This eliminates memory copies cpu overhead by multiple calls.
Merge pull request #5767 from elupus/samba_fixes2

Samba fixes