https://bugzilla.samba.org/show_bug.cgi?id=10233
Summary: rsync is spending a lot of time lstat64()'ing --exclude'd files Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: way...@samba.org ReportedBy: dar...@chaosreigns.com QAContact: rsync...@samba.org I ran: rsync -Pva --exclude '*.gz' / <destination> For hours, strace has been scrolling: lstat64("<file>.gz", {st_mode=S_IFREG|0644, st_size=74, ...}) = 0 lstat64("<file>.gz", {st_mode=S_IFREG|0644, st_size=419, ...}) = 0 lstat64("<file>.gz", {st_mode=S_IFREG|0644, st_size=449, ...}) = 0 lstat64("<file>.gz", {st_mode=S_IFREG|0644, st_size=408, ...}) = 0 lstat64("<file>.gz", {st_mode=S_IFREG|0644, st_size=75, ...}) = 0 lstat64("<file>.gz", {st_mode=S_IFREG|0644, st_size=579, ...}) = 0 lstat64("<file>.gz", {st_mode=S_IFREG|0644, st_size=339, ...}) = 0 Seems like this statting of files which match the --exclude pattern could be skipped, saving a lot of time in some cases? I'm using rsync version 3.0.7. BasketCase in IRC reproduced this with v3.1.0. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html