Displaying 5 results from an estimated 5 matches for "send_sums".
2002 Apr 23
1
patch: timeout problem solved
...an Nehlsen | ParlaNet Administration | sn@parlanet.de | +49 431 988-1260
-------------- next part --------------
--- rsync-2.5.5/generator.c Mon Mar 25 06:54:31 2002
+++ rsync-2.5.5-gen/generator.c Tue Apr 23 01:51:32 2002
@@ -102,28 +102,12 @@
/*
send a sums struct down a fd
*/
-static void send_sums(struct sum_struct *s, int f_out)
+static void send_null_sums(int f_out)
{
- if (s) {
- size_t i;
-
- /* tell the other guy how many we are going to be
- doing and how many bytes there are in the last
- chunk */
- write_int(f_out, s->count);
- write_int(f_out, s->n);
- write_int(...
2002 Apr 03
3
metadata in dryrun mode
As I reported a while back rsync doesn't handle metadata (permissions and
ownership) in dryrun mode.
I offered to make a patch and that offer still stands. I didn't have the
time for it until now and want to pick it up again. I had some ugly hack
back then but I want to redo it in a clean way.
I would like some input on my thoughts.
IMHO, it would be ideally if the check for dry_run
2005 Jan 05
1
rsync filename heuristics
...pbuf,&st);
> - if (!S_ISREG(st.st_mode))
> - statret = -1;
> - if (statret == -1)
> - errno = saveerrno;
> - else
> - fnamecmp = fnamecmpbuf;
> - }
> -
> - if (statret == -1) {
> - if (errno == ENOENT) {
> - write_int(f_out,i);
> - if (!dry_run) send_sums(NULL,f_out);
> - } else {
> - if (verbose > 1)
> - rprintf(FERROR, RSYNC_NAME
> - ": recv_generator failed to open \"%s\": %s\n",
> - fname, strerror(errno));
> - }
> - return;
> - }
> -
> - if (!S_ISREG(st.st_mode)) {
> - if...
2002 Aug 05
5
[patch] read-devices
...remote_version < 21) {
return (memcmp(sum,file->sum,2) == 0);
} else {
return (memcmp(sum,file->sum,MD4_SUM_LENGTH) == 0);
@@ -119,8 +120,9 @@
write_buf(f_out, s->sums[i].sum2, csum_length);
}
} else {
/* we don't have checksums */
+ 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<...
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