search for: sum_sizes_sqroot

Displaying 7 results from an estimated 7 matches for "sum_sizes_sqroot".

2007 May 21
0
Infinite loop on files > 2Gb
I'm using rsync to sync DB files from a FreeBSD box to a Windows XP box under interix. Until today everything was fine but now as soon as the windows box hits one file which is now greater than 2Gb it goes into an infinite loop in generator.c:sum_sizes_sqroot The code at fault seems to be: for (l = len; l >>= 1; b += 2) {} Here's the stack: #0 0x00402ae3 in sum_sizes_sqroot (sum=0x8bf530, len=-2073107852) at generator.c:455 #1 0x00402c56 in generate_and_send_sums (fd=5, len=-2073107852, f_out=4, f_copy=-1) at generator.c:490 #2 0x00405035...
2007 May 27
1
DO NOT REPLY [Bug 4664] New: Infinite loop on files > 2Gb
...iplay.co.uk QAContact: rsync-qa@samba.org I'm using rsync to sync DB files from a FreeBSD box to a Windows XP box under interix. Until today everything was fine but now as soon as the windows box hits one file which is now greater than 2Gb it goes into an infinite loop in generator.c:sum_sizes_sqroot The code at fault seems to be: for (l = len; l >>= 1; b += 2) {} Here's the stack: #0 0x00402ae3 in sum_sizes_sqroot (sum=0x8bf530, len=-2073107852) at generator.c:455 #1 0x00402c56 in generate_and_send_sums (fd=5, len=-2073107852, f_out=4, f_copy=-1) at generator.c:490 #2 0x00405035...
2004 Aug 02
4
reducing memmoves
Attached is a patch that makes window strides constant when files are walked with a constant block size. In these cases, it completely avoids all memmoves. In my simple local test of rsyncing 57MB of 10 local files, memmoved bytes went from 18MB to zero. I haven't tested this for a big variety of file cases. I think that this will always reduce the memmoves involved with walking a large
2010 Sep 15
1
What is the block size algorithm
Hello, First of all, thank you for this great software of rsync. If is extremely flexible and powerfull. (my only regret is that i could not find a version for windows dealing properly with charsets in the files' name, might be patched in a future version of cygwin? anyway this is not the subject here [?]). I would like to know how, in the version 3, is computed the default Block-Size? I
2004 Jul 12
1
Core dump - Can not sync big data folders of size 800 GB
Hi, I was trying to synchronize data sitting on our Sun Solaris 8 server with data size of about 800 GB to a remote Linux server in our LAN. Either the rsync process hangs for ever else I get "core dump" after about 15 minutes of time on the source host (solaris 8 server). I used rsync 2.6.2 using the basic command options as shown below # rsync -avz -e rsh <source folder
2005 Sep 06
3
[Bug 1529] 32bit rollover problem rsyncing files greater than 4GB in size
https://bugzilla.samba.org/show_bug.cgi?id=1529 ------- Additional Comments From thomas@suse.de 2005-09-06 06:37 ------- Now when len is OFF_T is it possible that sum->count (which is size_t) in sum_sizes_sqroot() will rollover too at line: sum->count = (len + (blength - 1)) / blength; ? When we assume all variables have all bits set: 2^64 + (2^32 - 1) / 2^32 = 2^32 + 1 But sum->count can only represent 2^32 and thereofre sum->count will be 0. Did I made a mistake here? -- Con...
2004 Jun 17
1
[PATCH] make write_batch local
...erate and send a stream of signatures/checksums that describe a buffer * * Generate approximately one checksum every block_len bytes. */ ! static void generate_and_send_sums(struct map_struct *buf, size_t len, int f_out) { ! size_t i; struct sum_struct sum; OFF_T offset = 0; sum_sizes_sqroot(&sum, len); write_sum_head(f_out, &sum); for (i = 0; i < sum.count; i++) { unsigned int n1 = MIN(len, sum.blength); --- 228,253 ---- * Generate and send a stream of signatures/checksums that describe a buffer * * Generate approximately one checksum every block_le...