Server-side copy with sendfile system call
ddiss at suse.de
Thu May 15 01:37:27 MDT 2014
On Thu, 15 May 2014 11:39:26 +0800, Teng-Feng Yang wrote:
> Thanks for the tips.
> I write a small program to test sendfile, and it turns out that
> sendfile will do nothing when out_fd == in_fd.
> Does this mean that we should fallback to read-then-write procedure to
> deal with this condition?
Yes, a fall-back would be needed for this case, as Windows handles such
requests successfully. The test_ioctl_copy_chunk_src_is_dest smbtorture
test covers this case.
More information about the samba-technical