Bug 530866
Summary: | rsync --sparse does not properly copy sparse files | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Brian J. Murrell <brian> | ||||
Component: | rsync | Assignee: | Vojtech Vitek <vvitek> | ||||
Status: | CLOSED ERRATA | QA Contact: | Aleš Mareček <amarecek> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5.3 | CC: | amarecek, hripps, ovasik | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 668811 737539 (view as bug list) | Environment: | |||||
Last Closed: | 2011-07-21 10:49:44 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 668811, 737539 | ||||||
Attachments: |
|
Description
Brian J. Murrell
2009-10-25 18:45:17 UTC
I tried on Ubuntu 9.04 (rsync 3.0.5), 9.10 (rsync 3.0.6) and Fedora 12 (rsync 3.0.7). I reproduced this issue on all systems. Then I did some digging and a test program. I think this issue describes only this particular case, when you create file with dd, but you copy no data to it (count=0). For now I'm not even sure the bug is worth fixing. The fix would need to find out how dd writes this file and use it in rsync. Hrm. Indeed. I just followed my reproducer case exactly and now the results on Ubuntu 9.04 are different than they were when I tested this last time: $ uname -a Linux brian-laptop 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010 i686 GNU/Linux $ cat /etc/issue Ubuntu 9.10 \n \l $ dd if=/dev/zero of=/tmp/sparse_file bs=1M count=0 seek=5 0+0 records in 0+0 records out 0 bytes (0 B) copied, 7.2635e-05 s, 0.0 kB/s $ ls -ls /tmp/sparse_file 0 -rw-r--r-- 1 brian brian 5242880 2010-04-08 10:17 /tmp/sparse_file $ rsync --sparse /tmp/sparse_file /var/tmp $ ls -ls /var/tmp/sparse_file 12 -rw-r--r-- 1 brian brian 5242880 2010-04-08 10:17 /var/tmp/sparse_file I wonder why the difference between then and now. FWIW, I've bug reported this upstream at https://bugzilla.samba.org/show_bug.cgi?id=7337. I guess we will see what the authors say about this issue. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. Created attachment 472849 [details]
Upstream patch for rsync-3.0.7
Removed one line (--fuzz=1) in Hunk #2 of receiver.c diff.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. This request was erroneously denied for the current release of Red Hat Enterprise Linux. The error has been fixed and this request has been re-proposed for the current release. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0999.html |