[Bug 8565] New: rsync hangs when using --only-write-batch and --hard-links

samba-bugs at samba.org samba-bugs at samba.org
Wed Nov 2 16:02:44 MDT 2011


           Summary: rsync hangs when using --only-write-batch and
           Product: rsync
           Version: 3.1.0
          Platform: x64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: samba-bugzilla at cetim.ch
         QAContact: rsync-qa at samba.org

rsync (sometimes) hangs when trying to build a batch file containing hardlinked

Here's a way to reproduce the problem:
mkdir new; cd new; mkdir a; mkdir a/b; mkdir c; touch a/b/1; ln a/b/1 c/2; cd
..; rsync --only-write-batch=batch_file -a -H --delete new/ old/

Expected result:
rsync exits normally (leaving behind a well-formed batch_file) or at least
exits with an error

Actual result:
rsync hangs indefinitely, causing any script which called it to wait on it

I confirmed the issue with the sources in
http://rsync.samba.org/ftp/rsync/nightly/rsync-HEAD-20111022-1730GMT.tar.gz but
3.0.9 was already affected.

Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the rsync mailing list