information on identifying hard links to a file

Wayne Davison wayned at samba.org
Thu Feb 9 17:40:43 GMT 2006


On Thu, Feb 09, 2006 at 03:04:17PM +0100, Paul Slootman wrote:
> compare inode and device number. When those are the same, the two files
> must be hardlinked.

Also, rsync only considers files that have a link count larger than 1
(see stat()'s st_nlink) since this allows it to ignore the vast majority
of files that have only one link into a filesystem.

..wayne..


More information about the rsync mailing list