1.7 preallocate issue?
Thu Oct 9 10:08:00 GMT 2008
On Oct 7 12:12, Rob Bosch wrote:
> I've been testing out the 1.7.0-28 build of cygwin using rsync 3.0.3 with
> the preallocate patch. My destination server setup is a Windows Server 2003
> R2 machine with a fibre array (10TB). The client is also running the same
> version of cygwin and rsync on a Server 2003 box.
> I've noticed that when rsync is creating very large files using preallocate
> (20GB+) then I will occasionally get a "Resource temporarily unavailable"
> error returned from rsync on the destination side (the server with the 10TB
> array). I've removed the file on the destination file system and the file
> will not get recreated using the preallocate option. When I do not use the
> preallocate option there are no issues with rsync.
> The preallocate patch is pasted below. The important code segment is here:
> +#ifdef SUPPORT_PREALLOCATION
> +int do_fallocate(int fd, OFF_T offset, OFF_T length)
> + RETURN_ERROR_IF(dry_run, 0);
> + RETURN_ERROR_IF_RO_OR_LO;
> + /* TODO: Use FALLOC_FL_KEEP_SIZE to avoid the need to truncate. */
> +#if defined HAVE_FALLOCATE
> + return fallocate(fd, 0, offset, length);
> +#elif defined HAVE_SYS_FALLOCATE
> + return syscall(SYS_fallocate, fd, 0, (loff_t) offset, (loff_t)
> +#elif defined HAVE_EFFICIENT_POSIX_FALLOCATE
> + return posix_fallocate(fd, offset, length);
> +#error coding error in SUPPORT_PREALLOCATION
> Any idea on why this error would occur when using the posix_fallocate
Not the faintest. Would you mind to run this under strace and send the
strace output for a run which trips over the "Resource temporarily
unavailable" error to this list?
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin