2017-10-23 18:52 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0012820CentOS-6rsyncpublic2017-02-15 07:38
ReporterViper 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Product Version6.8 
Target VersionFixed in Version 
Summary0012820: rsync does not break hard-link into destination if hard-link has be broken in source with option inplace.
DescriptionThere is problem of rsync with options --hard-links --inplace.
Steps To Reproduce$ mkdir {src,dst}
$ echo Test_1 > dst/file_1
$ ln dst/file_1 dst/file_2
$ echo Test_2 > src/file_1
$ echo Test_2_1 > src/file_2
$ ls -l src
total 8
-rw-r----- 1 andrey andrey 7 Feb 15 10:23 file_1
-rw-r----- 1 andrey andrey 9 Feb 15 10:23 file_2
$ ls -l dst/
total 8
-rw-r----- 2 andrey andrey 7 Feb 15 10:22 file_1
-rw-r----- 2 andrey andrey 7 Feb 15 10:22 file_2
$ rsync -aHi --inplace src/ dst/
.d..t...... ./
>f..t...... file_1
>f.st...... file_2
$ ls -l dst/
total 8
-rw-r----- 2 andrey andrey 9 Feb 15 10:23 file_1
-rw-r----- 2 andrey andrey 9 Feb 15 10:23 file_2
$ rsync -aHi --inplace src/ dst/
>f.st...... file_1
$ rsync -aHi --inplace src/ dst/
>f.st...... file_2
$ rsync -aHi --inplace src/ dst/
>f.st...... file_1
$ rsync -aHi --inplace src/ dst/
>f.st...... file_2
$ rsync -aHi --inplace src/ dst/
>f.st...... file_1
$ stat src/file_2
  File: `src/file_2'
  Size: 9 Blocks: 8 IO Block: 4096 regular file
Device: fd02h/64770d Inode: 327683 Links: 1
Access: (0640/-rw-r-----) Uid: ( 500/ andrey) Gid: ( 500/ andrey)
Access: 2017-02-15 10:24:46.845872706 +0300
Modify: 2017-02-15 10:23:51.453245297 +0300
Change: 2017-02-15 10:23:51.453245297 +0300
$ stat dst/file_2
  File: `dst/file_2'
  Size: 7 Blocks: 8 IO Block: 4096 regular file
Device: fd02h/64770d Inode: 278530 Links: 2
Access: (0640/-rw-r-----) Uid: ( 500/ andrey) Gid: ( 500/ andrey)
Access: 2017-02-15 10:27:02.000000000 +0300
Modify: 2017-02-15 10:23:24.000000000 +0300
Change: 2017-02-15 10:27:02.934957321 +0300
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2017-02-15 07:38 Viper New Issue
+Issue History