search for: generate_sums

Displaying 8 results from an estimated 8 matches for "generate_sums".

2002 Oct 29
2
Rsync help
I get the following transering a large file use rsync over ssh. root@pbodb bin$ ./ausbk.sh building file list ... 10 files to consider ERROR: out of memory in generate_sums rsync: connection unexpectedly closed (8 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(150) Regards, Dave -------------- next part -------------- HTML attachment scrubbed and removed
2002 Apr 23
1
patch: timeout problem solved
...ut, 0); - write_int(f_out, block_size); - write_int(f_out, 0); - } + /* we don't have checksums */ + write_int(f_out, 0); + write_int(f_out, block_size); + write_int(f_out, 0); } @@ -162,57 +146,43 @@ generate approximately one checksum every n bytes */ -static struct sum_struct *generate_sums(struct map_struct *buf,OFF_T len,int n) +void generate_and_send_sums(struct map_struct *buf,OFF_T len,int block_len, int f_out) { - int i; - struct sum_struct *s; - int count; - int block_len = n; - int remainder = (len%block_len); + size_t i; + struct sum_struct sum; OFF_T offset = 0; - count...
2002 Mar 28
1
(no subject)
...Alpha (and also with gcc on other systems) caught some mismatches between format items and arguments in printf() that reflect an absence of required type casts, or better, corrected format items: gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c generator.c -o generator.o generator.c: In function `generate_sums': generator.c:191: warning: int format, different type arg (arg 3) generator.c:191: warning: int format, different type arg (arg 4) generator.c:191: warning: int format, different type arg (arg 5) gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c sender.c -o sender.o sender.c: In function `r...
2005 Jan 05
1
rsync filename heuristics
...gt; return; > } > > @@ -427,7 +426,7 @@ > } > > if (verbose > 3) > - rprintf(FINFO,"gen mapped %s of size %.0f\n",fnamecmp,(double)st.st_size); > + rprintf(FINFO,"gen mapped %s of size %.0f\n",fname,(double)st.st_size); > > s = generate_sums(buf,st.st_size,adapt_block_size(file, block_size)); > > diff -urN rsync-2.5.4/options.c rsync-2.5.4-fuzzy/options.c > --- rsync-2.5.4/options.c 2002-02-28 09:49:57.000000000 +1100 > +++ rsync-2.5.4-fuzzy/options.c 2002-04-03 16:43:54.000000000 +1000 > @@ -73,6 +73,7 @@ > #else...
2002 Nov 06
4
Rsync-2.5.5 on Tru64 UNIX V51.A
...eating shconfig config.status: creating config.h rsync 2.5.5 configuration successful phobson@itustb1:-) make gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c rsync.c -o rsync.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c generator.c -o generator.o generator.c: In function `generate_sums': generator.c:191: warning: int format, different type arg (arg 3) generator.c:191: warning: int format, different type arg (arg 4) generator.c:191: warning: int format, different type arg (arg 5) gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c receiver.c -o receiver.o gcc -I. -I. -g -O...
2002 Apr 19
8
Future RSYNC enhancement/improvement suggestions
Hello, Recently while working with rsync as the way to mirror large (several GB) archive on a regular basis, I came across several problems, and also got the ideas about their possible solutions - please could you investigate & consider implementing the features, described below, to future RSYNC releases ? - when the checksumming (consider very large archive, several GB) stage of rsync
2002 Nov 15
0
building rsync on MacOSX 10.2.2
...configuration successful diderot:/Volumes/local/tmp/rsync-2.5.5 59# make gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c rsync.c -o rsync.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c generator.c -o generator.o generator.c: In function `generate_sums': generator.c:191: warning: int format, size_t arg (arg 3) generator.c:191: warning: int format, size_t arg (arg 4) generator.c:191: warning: int format, size_t arg (arg 5) gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c receiver.c -o receiver.o gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall...
2002 Aug 05
5
[patch] read-devices
...*/ + rprintf(FINFO, "#ET# send_sums: don't have checksums\n"); write_int(f_out, 0); write_int(f_out, block_size); write_int(f_out, 0); } @@ -193,24 +195,23 @@ s->sums = (struct sum_buf *)malloc(sizeof(s->sums[0])*s->count); if (!s->sums) out_of_memory("generate_sums"); for (i=0;i<count;i++) { - int n1 = MIN(len,n); - char *map = map_ptr(buf,offset,n1); + map_ptr(buf,offset,n); - s->sums[i].sum1 = get_checksum1(map,n1); - get_checksum2(map,n1,s->sums[i].sum2); + s->sums[i].sum1 = get_checksum1(buf->m_ptr,buf->m_len); + get_...