This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin copy problems usb 2.0
Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
>
> Does cp already use ftruncate?
Yes, when copying from one regular file to another, cp (and mv and install,
which share the same code for file copies) uses ftruncate. But it currently
only uses it for creating holes at the tail end of sparse files, relying on
lseek for holes in the middle. It currently does not use posix_f
{allocate/advise), although I think such a patch would be useful independently
of cygwin.
--
Eric Blake
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/