Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
64e7463
)
If we discover a hardlink with -vv say what it's a link to.
author
Martin Pool
<mbp@samba.org>
Mon, 25 Mar 2002 06:27:44 +0000
(06:27 +0000)
committer
Martin Pool
<mbp@samba.org>
Mon, 25 Mar 2002 06:27:44 +0000
(06:27 +0000)
hlink.c
patch
|
blob
|
blame
|
history
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 &&
- 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;
+ }
#endif
return 0;