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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

samba-bugs
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: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

[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.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

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

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

--- Comment #1 from Brian Candler <[hidden email]> ---
Possibly related to #10675

--
You are receiving this mail because:
You are the QA Contact for the bug.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html