[Bug 13423] New: Checksum option does not work as expected when append-verify is used

samba-bugs at samba.org samba-bugs at samba.org
Tue May 8 12:14:45 UTC 2018


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

            Bug ID: 13423
           Summary: Checksum option does not work as expected when
                    append-verify is used
           Product: rsync
           Version: 3.1.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
          Assignee: wayned at samba.org
          Reporter: dariuszb at me.com
        QA Contact: rsync-qa at samba.org

Checksum option does not work as expected when append-verify is used. I can see
that checksums are created for all files but they are not synced.




rsync sample files to remote site:

# rsync -azhcv --append-verify  --progress --stats . 
rsyncclient at 192.168.142.2::DBTest/DBtest/
sending incremental file list
./
Firefox 60.0.dmg
         55.37M 100%    8.40MB/s    0:00:06 (xfr#1, to-chk=3/6)
Skype-8.19.0.1.dmg
         92.68M 100%    8.35MB/s    0:00:10 (xfr#2, to-chk=2/6)
SuperDuper!-2.dmg
          6.09M 100%    5.16MB/s    0:00:01 (xfr#3, to-chk=1/6)
SuperDuper!.dmg
          6.09M 100%    7.20MB/s    0:00:00 (xfr#4, to-chk=0/6)

Number of files: 6 (reg: 5, dir: 1)
Number of created files: 4 (reg: 4)
Number of deleted files: 0
Number of regular files transferred: 4
Total file size: 160.23M bytes
Total transferred file size: 160.23M bytes
Literal data: 160.23M bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.388 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 159.83M
Total bytes received: 95

sent 159.83M bytes  received 95 bytes  8.20M bytes/sec
total size is 160.23M  speedup is 1.00


Now i use hexcurse and change one of the source files - just flip some bytes.

As -c option is present I would expect that rsync detects that one file has
changed and updates it accordingly. I run rsync again - no files are synced - I
can confirm it by manually checking files' hashes. 

# rsync -azhcv --append-verify  --progress --stats . 
rsyncclient at 192.168.142.2::DBTest/DBtest/
sending incremental file list

Number of files: 6 (reg: 5, dir: 1)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 0
Total file size: 160.23M bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.402 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 272
Total bytes received: 12

sent 272 bytes  received 12 bytes  81.14 bytes/sec
total size is 160.23M  speedup is 564,202.91



I remove --append-verify option and run rsync again

# rsync -azhcv  --progress --stats .  rsyncclient at 192.168.142.2::DBTest/DBtest/
sending incremental file list
Firefox 60.0.dmg
         55.37M 100%  101.92MB/s    0:00:00 (xfr#1, to-chk=3/6)

Number of files: 6 (reg: 5, dir: 1)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 1
Total file size: 160.23M bytes
Total transferred file size: 55.37M bytes
Literal data: 7.44K bytes
Matched data: 55.36M bytes
File list size: 0
File list generation time: 0.390 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 7.44K
Total bytes received: 52.14K

sent 7.44K bytes  received 52.14K bytes  7.94K bytes/sec
total size is 160.23M  speedup is 2,689.70


This time files were synced as expected

-- 
You are receiving this mail because:
You are the QA Contact for the bug.



More information about the rsync mailing list