search for: disable_deltas_p

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

2002 Jun 02
1
batch diffs
...64-bit files, socketpairs, hard links, symlinks, batchfiles, no IPv6, 64-bit system inums, 64-bit internal inums Digging around in the sources (uhg), I found that this occurs because... batch.c line 485 dereferences s->sums[i] which is NULL, because... generator thinks it can disable_deltas_p() when batches are read. I'm not sure about the usefulness of this batch support, but the ability to create rsync diffs would be awesome. (Without updating the destination, and why all that checksum data?) Would it not be better to provide separate utiliti(es) for this purpose and not clutte...
2004 Jun 17
1
[PATCH] make write_batch local
...rounded square root of file length. *************** *** 210,223 **** * * When do we do this? If the user's explicitly said they * want the whole thing, or if { they haven't explicitly ! * requested a delta, and it's local but not batch mode.} * * Whew. */ static BOOL disable_deltas_p(void) { if (whole_file > 0) return True; ! if (whole_file == 0 || write_batch || read_batch) return False; return local_server; } --- 211,224 ---- * * When do we do this? If the user's explicitly said they * want the whole thing, or if { they haven't explicit...
2002 Apr 23
1
patch: timeout problem solved
..._out); } else { if (verbose > 1) rprintf(FERROR, RSYNC_NAME @@ -406,7 +375,7 @@ /* now pretend the file didn't exist */ write_int(f_out,i); - if (!dry_run) send_sums(NULL,f_out); + if (!dry_run) send_null_sums(f_out); return; } @@ -435,7 +404,7 @@ if (disable_deltas_p()) { write_int(f_out,i); - send_sums(NULL,f_out); + send_null_sums(f_out); return; } @@ -446,7 +415,7 @@ rprintf(FERROR,RSYNC_NAME": failed to open \"%s\", continuing : %s\n",fnamecmp,strerror(errno)); /* pretend the file didn't exist */ write_in...
2003 Sep 05
1
new option suggestion '--backup-only'
...-477,7 +497,7 @@ } if (skip_file(fname, file, &st)) { - if (fnamecmp == fname) + if ((fnamecmp == fname) && !backup_only) set_perms(fname,file,&st,1); return; } @@ -487,6 +507,11 @@ return; } + if (backup_only) { + make_backup(fname); + return; + } + if (disable_deltas_p()) { write_int(f_out,i); write_sum_head(f_out, NULL); diff -ur rsync/options.c rsync-backuponly/options.c --- rsync/options.c 2003-08-06 15:45:14.000000000 +0900 +++ rsync-backuponly/options.c 2003-09-02 15:53:10.000000000 +0900 @@ -119,6 +119,7 @@ char *backup_dir = NULL; int rsync_port =...
2003 Mar 30
1
[RFC][patch] dynamic rolling block and sum sizes II
..., NULL); } else { if (verbose > 1) rprintf(FERROR, RSYNC_NAME @@ -401,7 +408,7 @@ /* now pretend the file didn't exist */ write_int(f_out,i); - if (!dry_run) send_null_sums(f_out); + if (!dry_run) write_sum_head(f_out, NULL); return; } @@ -430,7 +437,7 @@ if (disable_deltas_p()) { write_int(f_out,i); - send_null_sums(f_out); + write_sum_head(f_out, NULL); return; } @@ -441,7 +448,7 @@ rprintf(FERROR,RSYNC_NAME": failed to open \"%s\", continuing : %s\n",fnamecmp,strerror(errno)); /* pretend the file didn't exist */ write_int(...
2002 Aug 05
5
[patch] read-devices
...mpbuf; } + { int errsave=errno; rprintf(FINFO, "#ET# recv_generator: statret==%d, errno=%d\n", statret, errno); errno=errsave; } if (statret == -1) { if (errno == ENOENT) { write_int(f_out,i); if (!dry_run) send_sums(NULL,f_out); @@ -433,8 +444,9 @@ return; } if (disable_deltas_p()) { + rprintf(FINFO, "#ET# recv_generator: disable_deltas_p()==TRUE!\n"); write_int(f_out,i); send_sums(NULL,f_out); return; } diff -r -u4 rsync-2.5.5/match.c rsync-patched/match.c --- rsync-2.5.5/match.c Sun Feb 3 04:38:39 2002 +++ rsync-patched/match.c Mon Aug 5 10:05...
2003 Mar 23
1
[RFC] dynamic checksum size
..., NULL); } else { if (verbose > 1) rprintf(FERROR, RSYNC_NAME @@ -394,7 +401,7 @@ /* now pretend the file didn't exist */ write_int(f_out,i); - if (!dry_run) send_null_sums(f_out); + if (!dry_run) write_sum_head(f_out, NULL); return; } @@ -423,7 +430,7 @@ if (disable_deltas_p()) { write_int(f_out,i); - send_null_sums(f_out); + write_sum_head(f_out, NULL); return; } @@ -434,7 +441,7 @@ rprintf(FERROR,RSYNC_NAME": failed to open \"%s\", continuing : %s\n",fnamecmp,strerror(errno)); /* pretend the file didn't exist */ write_int(...