[patch] Add `--link-by-hash' option.

Donovan Baarda abo at minkirri.apana.org.au
Mon Feb 9 23:11:09 GMT 2004


On Tue, 2004-02-10 at 07:48, Jason M. Felice wrote:
> This patch adds the --link-by-hash=DIR option, which hard links received
> files in a link farm arranged by MD4 file hash.  The result is that the system
> will only store one copy of the unique contents of each file, regardless of
> the file's name.

Does this mean it also automatically detects renames?

> Anyone have an example of an MD4 collision so I can test that case? :)

How do you recover from that case?

> Patch Summary:
> 
>     -1   +1    Makefile.in
>     -0   +304  hashlink.c (new)
>     -1   +21   options.c
>     -0   +6    proto.h
>     -5   +21   receiver.c
>     -0   +6    rsync.c
>     -0   +7    rsync.h

If this does everything I think it does, then it's a surprisingly small
amount of changes for what it does.
> 
> ______________________________________________________________________
-- 
Donovan Baarda <abo at minkirri.apana.org.au>
http://minkirri.apana.org.au/~abo/



More information about the rsync mailing list