DO NOT REPLY [Bug 4899] When a mounted dir cannot be visited, rsync will halt there and the shell is halted, even "ctrl -c" can't quit it.

samba-bugs at samba.org samba-bugs at samba.org
Tue Aug 21 11:00:38 GMT 2007


https://bugzilla.samba.org/show_bug.cgi?id=4899





------- Comment #5 from hashproduct+rsync at gmail.com  2007-08-21 06:00 CST -------
Created an attachment (id=2876)
 --> (https://bugzilla.samba.org/attachment.cgi?id=2876&action=view)
Alternative solution: check exclusion both ways

The attached patch gives an alternative way to fix the hanging without breaking
directory-specific exclude rules.  make_file calls is_exclude twice to
determine whether the file would be excluded if it is a directory and whether
it would be excluded if it isn't one.  If the file would be excluded either
way, make_file skips calling stat.

This solution has two disadvantages: the filter list is scanned twice (hurting
performance), and at -vv level, hypothetical "showing/hiding file/directory X
because of pattern Y" messages are printed.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list