scan for first existing hard-link file

Wayne Davison wayned at samba.org
Sun Jan 25 18:44:10 GMT 2004


On Sun, Jan 25, 2004 at 02:05:21AM -0800, Wayne Davison wrote:
> Here's a patch that makes rsync try to find an existing file in a
> group of hard-linked files so that it doesn't create the first one
> in the group from scratch if a later file could be used instead.

Here's a slightly improved version of this patch that moves some
duplicated code into a function and ensures that the traditional "FOO is
a hard link" message gets output for any link that we skip during the
search (when verbose > 1, just as before):

    http://www.blorf.net/hlink-scan.patch

..wayne..


More information about the rsync mailing list