Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If we discover a hardlink with -vv say what it's a link to.
[rsync/rsync.git]
/
hlink.c
diff --git
a/hlink.c
b/hlink.c
index
a79d15a
..
ea38999
100644
(file)
--- a/
hlink.c
+++ b/
hlink.c
@@
-103,8
+103,13
@@
int check_hard_link(struct file_struct *file)
if (low > 0 &&
S_ISREG(hlink_list[low - 1].mode) &&
file->dev == hlink_list[low - 1].dev &&
if (low > 0 &&
S_ISREG(hlink_list[low - 1].mode) &&
file->dev == hlink_list[low - 1].dev &&
- file->inode == hlink_list[low - 1].inode)
+ file->inode == hlink_list[low - 1].inode) {
+ if (verbose >= 2) {
+ rprintf(FINFO, "check_hard_link: \"%s\" is a hard link to file %d, \"%s\"\n",
+ f_name(file), low, f_name(&hlink_list[low]));
+ }
return 1;
return 1;
+ }
#endif
return 0;
#endif
return 0;