[Dirvish] Small question on the use of hardlinks in dirvish

Paul Slootman paul at debian.org
Mon Jul 10 11:28:36 UTC 2006


One point that hasn't been mentioned yet in this thread:

On Sun 09 Jul 2006, Johannes Kastl wrote:
> 
> > ojkastl at RobinLinux:/mnt/BACKUP/DIRVISH_TEST/home> ll 20060709-2145/tree/9_3/RPMs/installiert/
> > insgesamt 112M
> > [...]
> > -rw-r--r--  22 ojkastl users 100M 2006-07-07 20:17 VMware-server-1.0.0-27828.i386.rpm
> > ojkastl at RobinLinux:/mnt/BACKUP/DIRVISH_TEST/home> 
> 
> So it has 22 hardlinks on it, if I read that corectly.
> 
> If I now copy the file to Administration/, and wait til dirvish is run
> again, I would expect that it will get hardlinked, as it is on the
> bank already. But:
> 
> > ojkastl at RobinLinux:/mnt/BACKUP/DIRVISH_TEST/home> ll 20060709-2145/tree/
> > insgesamt 123M
> > [...]
> > -rw-r--r--   1 ojkastl users 100M 2006-07-06 15:34 VMware-server-1.0.0-27828.i386.rpm
> > ojkastl at RobinLinux:/mnt/BACKUP/DIRVISH_TEST/home> 

Note that the modification time is different, so dirvish won't hardlink
this file from the previous image, as it is NOT the same file in all
respects; if it did, then the information about the modification time
would be lost.

This is an extra note, in addition to the other points already brought
up... so don't complain that it doesn't do the hardlinking even if you
do cp -p :-)


Paul Slootman


More information about the Dirvish mailing list