[Bug 11151] New: rsync transfers entire source file even when unable to create destination

samba-bugs at samba.org samba-bugs at samba.org
Wed Mar 11 04:41:01 MDT 2015


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

            Bug ID: 11151
           Summary: rsync transfers entire source file even when unable to
                    create destination
           Product: rsync
           Version: 3.0.9
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
          Assignee: wayned at samba.org
          Reporter: b.candler at pobox.com
        QA Contact: rsync-qa at samba.org

[This is with rsync 3.0.9 under Debian Wheezy]

Using the following command to copy a 2TB file:

    rsync -t --progress /file/on/nfs/source /local/dest

The permissions were wrong on /local to create the file, but the whole 2TB was
still read from NFS - hence it took ~6 hours for the command to fail!

The issue is easy to replicate, here with a smaller (4.4GB) file:

$ time rsync /nfs/testfile /etc/dontcare
<< hangs at this point for 16 seconds >>
rsync: mkstemp "/etc/.dontcare.xBvfOf" failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code
23) at main.c(1070) [sender=3.0.9]

real    0m16.102s
user    0m19.213s
sys    0m7.396s

You can observe the same problem with a local source file (i.e. not involving
NFS), although it needs to be sufficiently large for the problem to be
noticeable.

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


More information about the rsync mailing list