[Bug 10233] New: rsync is spending a lot of time lstat64()'ing --exclude'd files

samba-bugs at samba.org samba-bugs at samba.org
Mon Oct 28 16:01:22 MDT 2013


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: wayned at samba.org
        ReportedBy: darxus at chaosreigns.com
         QAContact: rsync-qa at 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.


More information about the rsync mailing list