Re: diff(1)ing hardlinks

2021-09-01 Thread Todd C . Miller
On Wed, 01 Sep 2021 01:33:34 +0200, Alexander Hall wrote: > If two files to be compared share the same inode, it should > be reasonable to consider them identical. > > This gives a substantial speedup when comparing directory > structures with many hardlinked files, e.g. when using > rsnapshot

Re: diff(1)ing hardlinks

2021-09-01 Thread Stefan Sperling
On Wed, Sep 01, 2021 at 01:12:20PM +0200, Stefan Sperling wrote: > On Wed, Sep 01, 2021 at 01:33:34AM +0200, Alexander Hall wrote: > > If two files to be compared share the same inode, it should > > be reasonable to consider them identical. > > > > This gives a substantial speedup when comparing

Re: diff(1)ing hardlinks

2021-09-01 Thread Stefan Sperling
On Wed, Sep 01, 2021 at 01:33:34AM +0200, Alexander Hall wrote: > If two files to be compared share the same inode, it should > be reasonable to consider them identical. > > This gives a substantial speedup when comparing directory > structures with many hardlinked files, e.g. when using >

Re: diff(1)ing hardlinks

2021-09-01 Thread Theo de Raadt
shocking this test wasn't already in place. Alexander Hall wrote: > If two files to be compared share the same inode, it should > be reasonable to consider them identical. > > This gives a substantial speedup when comparing directory > structures with many hardlinked files, e.g. when using >

diff(1)ing hardlinks

2021-08-31 Thread Alexander Hall
If two files to be compared share the same inode, it should be reasonable to consider them identical. This gives a substantial speedup when comparing directory structures with many hardlinked files, e.g. when using rsnapshot for incremental backup. Comments? OK? /Alexander Index: diffreg.c