Re: information on identifying hard links to a file

2006-02-11 Thread Shachar Shemesh
Wayne Davison wrote: 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

Re: information on identifying hard links to a file

2006-02-09 Thread Paul Slootman
On Thu 09 Feb 2006, yogesh kulkarni wrote: Am presently working on rsync and would like to know how does rsync identify hardlinks.I have gone through the hlink.c file and have not really understood the flow presented in the function.If anyone can provide

Re: information on identifying hard links to a file

2006-02-09 Thread Wayne Davison
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

Re: information on identifying hard links to a file

2006-02-09 Thread Jamie Lokier
Wayne Davison wrote: 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