[Bug 2390] New: some dry run stats inaccurate

samba-bugs at samba.org samba-bugs at samba.org
Fri Feb 25 00:21:02 GMT 2005


           Summary: some dry run stats inaccurate
           Product: rsync
           Version: 2.6.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: woodd at deshaw.com
         QAContact: rsync-qa at samba.org

When using rsync with "--dry-run --stats" the reported "Number of files
transferred" and "Total transferred file size" are incorrect:

bsqa1.nyc:/tmp/rsync/test #  /tmp/rsync/bin/rsync --archive --dry-run --stats
/tmp/rsync/ bsprod1:/tmp/rsync/
building file list ... done

Number of files: 10
Number of files transferred: 3
Total file size: 853173 bytes
Total transferred file size: 126433 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 188
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 254
Total bytes received: 74

sent 254 bytes  received 74 bytes  656.00 bytes/sec
total size is 853173  speedup is 2601.14

Notice that rsync reported that 3 files were transferred and they had a size of
126433 bytes.  Rsync was run with "--dry-run" so in fact 0 files were
transferred with 0 size.  I'll attach a patch I've been using to work around
this problem.  David

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