https://bugzilla.samba.org/show_bug.cgi?id=3925


pvf@btlink.net changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |pvf@btlink.net




------- Comment #5 from pvf@btlink.net 2008-11-11 19:39 CST -------
on file "fileio.c", line 31:
static size_t sparse_seek = 0;

size_t is 4 bytes (4GB), at least on my six years old P4, don't know in 64 bits
systems

So if there are more than 4GB consecutive zeros, the "sparse_seek" variable
overflows, and things go wrong... but the size of the file changes, so I'm not
sure if this is related to this thread.

just change it to:
static off_t sparse_seek = 0;

and it works, or at least it looks like it works . Maybe some more in deep
look should be taken on the "sparse" code (also happens with l1 and l2, but I
don't think anyone is going to have a +4GB buffer...)

Oh! this is in, at least, rsync 3.0.4 and on my gentoo 3.0.3... maybe much
earlier too...


--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html