search for: f_name_cmp

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

2005 Mar 13
2
Premature optimization in f_name_cmp()?
...that rsync 2.6.4pre2 fixes some of my other issues (timeouts in particular), but now I'm being bitten by very high loads and slow transfers. My current theory is that the offending code is from this checkin: http://cvs.samba.org/cgi-bin/cvsweb/rsync/flist.c.diff?r1=1.272&r2=1.273 > If f_name_cmp() discovers that two directory strings compare to an > equal value without being equal pointers, substitute one of the > pointers for the other in the file list. This optimizes future name > comparisons. Note also that this optimization won't be triggered > very often (because rs...
2005 May 24
1
rsync incorrectly deletes files ?
rsync -e 'ssh -x' --log-format="%o /%n %b" -tLr --delete --files-from=files-to-sync --exclude-from=files-to-exclude user@host:/ /temp/ del. /etc/mail/spamfilter/mx1/whitelist.conf 0 del. /etc/mail/spamfilter/mx1/blacklist.conf 0 recv /etc/mail/spamfilter/mx1/ 0 recv /etc/mail/spamfilter/mx1/blacklist.conf 211 recv /etc/mail/spamfilter/mx1/whitelist.conf 924 Why does rsync
2005 May 25
0
Solved: rsync incorrectly deletes files ?
Hallo Wayne, > A patch that fixes f_name_cmp() is attached. I'm also considering a more > extensive change that would simplify the logic in f_name_cmp(), but that > will have to wait until after 2.6.5 gets released. Wonderful, the patch works. > > Thanks for the report! Thanks for the very fast analysis of the problem Greet...
2006 Oct 14
0
Rsync 2.6.9pre2 released
...ker program and made several changes, including: replacing most of the strcpy() and sprintf() calls with strlcpy(), snprintf(), and memcpy(), and adding a 0-value to an enum that had been intermingling a literal 0 with the defined enum values. - Fixed a potential bug in f_name_cmp() when both the args are a top-level "." dir (which doesn't happen in normal operations). - Changed exit_cleanup() so that it can never return instead of exit. The old code might return if it found the exit_cleanup() function was being called recursively. The n...
2006 Oct 14
0
Rsync 2.6.9pre2 released
...ker program and made several changes, including: replacing most of the strcpy() and sprintf() calls with strlcpy(), snprintf(), and memcpy(), and adding a 0-value to an enum that had been intermingling a literal 0 with the defined enum values. - Fixed a potential bug in f_name_cmp() when both the args are a top-level "." dir (which doesn't happen in normal operations). - Changed exit_cleanup() so that it can never return instead of exit. The old code might return if it found the exit_cleanup() function was being called recursively. The n...
2007 Feb 04
1
rsync sort list
Hi While I was working on a script that uses rsync file list found this: (which I guess is due adding / for dirs in f_name_cmp) ==2 dirs: # mkdir a a-c # rsync -a . drwxr-xr-x 96 2007/02/04 18:20:35 . drwxr-xr-x 48 2007/02/04 18:20:35 a-c drwxr-xr-x 48 2007/02/04 18:20:35 a ==2 dirs again: #mkdir a a1 # rsync -a . drwxr-xr-x 96 2007/02/04 18:20:11 . drwxr-xr-x 48 2007/02/04 18...
2004 Feb 06
4
memory reduction
...ct file_list *flist, struct file_struct *f); -void free_file(struct file_struct *file, int free_the_struct); -struct file_list *flist_new(void); +void clear_file(int i, struct file_list *flist); +struct file_list *flist_new(int with_hlink, char *msg); void flist_free(struct file_list *flist); int f_name_cmp(struct file_struct *f1, struct file_struct *f2); char *f_name_to(struct file_struct *f, char *fbuf); diff -rupNP --exclude-from cvs/.ignore cvs/receiver.c pool2/receiver.c --- cvs/receiver.c Wed Feb 4 03:49:36 2004 +++ pool2/receiver.c Wed Feb 4 03:08:45 2004 @@ -305,6 +305,12 @@ int recv_files(...