[Bug 8456] New: improve --link-dest bahaviour

samba-bugs at samba.org samba-bugs at samba.org
Wed Sep 14 07:16:06 MDT 2011


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

           Summary: improve --link-dest bahaviour
           Product: rsync
           Version: 3.0.8
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: toralf.foerster at gmx.de
         QAContact: rsync-qa at samba.org


Considering the following sequence I'd expect after the last command that the
file /tmp/rsync_test/c/rand1M would have the inode number 909377 - instead it
is a new copy of an unchanged file :-(


$ rm -rf /tmp/rsync_test/           

$ mkdir -p /tmp/rsync_test/{a,b,c}        

$ dd if=/dev/urandom of=/tmp/rsync_test/a/rand1M bs=1024 count=1024 2>/dev/null 

$ rsync --archive --itemize-changes /tmp/rsync_test/a/ /tmp/rsync_test/b
.d..t...... ./
>f+++++++++ rand1M

$ touch /tmp/rsync_test/c/rand1M

$ rsync --archive --itemize-changes /tmp/rsync_test/a/ /tmp/rsync_test/c
--link-dest=/tmp/rsync_test/b 
.d..t...... ./
>f.st...... rand1M

$ ls -il /tmp/rsync_test/?/*
909361 -rw-r--r-- 1 tfoerste users 1048576 Sep 14 15:12
/tmp/rsync_test/a/rand1M
909370 -rw-r--r-- 1 tfoerste users 1048576 Sep 14 15:12
/tmp/rsync_test/b/rand1M
909377 -rw-r--r-- 1 tfoerste users 1048576 Sep 14 15:12
/tmp/rsync_test/c/rand1M

-- 
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