hardlink command
Sergio Belkin
sebelk at gmail.com
Sun Nov 10 20:07:17 UTC 2013
I've found the interesting tool hardlink, supposedly it scans
directories looking for duplicates files and eventually can
consolidate them using hardlinks
Well it doesn't work for me, eg:
[sergio at madryn tmp]$ ls /tmp/test1 /tmp/test2
/tmp/test1:
alpha
/tmp/test2:
alpha
[sergio at madryn tmp]$ hardlink -n -v -v /tmp/
Directories 11
Objects 25
IFREG 9
Comparisons 0
Would link 0
Would save 0
Only it works if I use the -c option:
[sergio at madryn tmp]$ hardlink -c -v -v /tmp/
Linked /tmp//alpha to /tmp//examples/alpha, saved 12
Linked /tmp//test1/alpha to /tmp//test2/alpha, saved 558
Directories 11
Objects 25
IFREG 9
Comparisons 2
Linked 2
saved 8192
[sergio at madryn tmp]$ ls -i /tmp/test1 /tmp/test2
/tmp/test1:
46798 alpha
/tmp/test2:
46798 alpha
Please tell me if it happens you the same, so I report the bug, don't I?
OS and pkg Data:
[sergio at madryn tmp]$ cat /etc/redhat-release
Fedora release 19 (Schrödinger’s Cat)
[sergio at madryn tmp]$ rpm -q hardlink
hardlink-1.0-17.fc19.x86_64
Thanks in advance
--
--
Sergio Belkin http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified - http://www.lpi.org
More information about the devel
mailing list