search for: deletion_count

Displaying 4 results from an estimated 4 matches for "deletion_count".

Did you mean: deletion_count++
2004 Oct 18
1
Strange behaviour with --max-delete option
...tmp# ./rsync --delete -avun --max-delete=1 src/ dest building file list ... done deleting 2 deleting 1 sent 81 bytes received 20 bytes 202.00 bytes/sec total size is 0 speedup is 0.00 It deletes 2 files while --max-delete=1 was specified. I think it has something to do with deletion_count in delete_files(receiver.c). Bye, Laurens
2005 Mar 02
0
[Bug 2408] New: when more than --max-delete files are about to be deleted no error is returned
...te code has changed.I have a (barely tested) patch for 2.6.3 here: --- rsync-2.6.3.orig/receiver.c 2004-09-21 11:24:06.000000000 +0200 +++ rsync-2.6.3/receiver.c 2005-03-02 15:41:26.000000000 +0100 @@ -93,6 +93,7 @@ int i, j; char *argv[1], fbuf[MAXPATHLEN]; static int deletion_count; + int deletion_test_count; if (cvs_exclude) add_cvs_excludes(); @@ -102,6 +103,38 @@ return; } + /* if --max-delete is specified, check that not too many files will be deleted */ + if (max_delete) { + + /* count numb...
2003 Jul 29
1
"-b --suffix '' --delete --backup-dir /path/" combination does not act as expected
Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/rsync/attachments/20030728/49616c2f/attachment.bin
2004 Oct 05
0
new option implemented: --delete-mdays
...ete; - extern int delete_mdays; extern int csum_length; extern struct stats stats; extern int dry_run; extern int read_batch; extern int batch_gen_fd; --- 22,31 ---- *************** *** 119,147 **** for (i = local_file_list->count-1; i >= 0; i--) { if (max_delete && deletion_count > max_delete) break; if (!local_file_list->files[i]->basename) continue; - if (flist_find(flist,local_file_list->files[i]) < 0) { char *f = f_name(local_file_list->files[i]); - - time_t now_time = time(NULL); - time_t mday_time = now_time-dele...