Hi,
Tor Rune Skoglund wrote:
> One further question relating to hashify:
>
> How is the hash value created ? What is it based on? - Just the file
> contents, or (some of - which?) file metadata also?
File metadata including mode, uid, gid, rdev, size, and mtime is also
included. The entirety of the file is used.
> I have a strange test case here where two binary equal files in the same
> file system, same name, same locations but in two guest did not get
> hashified to the same hash value, and I an trying to understand why?
Could you also post the result of stat on the two files?
Best regards,
Daniel
> amd64 part4 # ls -il vservers/machine95/usr/bin/bc
> 2205290 -rwxr-xr-x 2 root root 84952 jan. 26 18:36
> vservers/machine95/usr/bin/bc
>
> amd64 part4 # ls -il vservers/machine96/usr/bin/bc
> 2525495 -rwxr-xr-x 2 root root 84952 jan. 26 18:36
> vservers/machine96/usr/bin/bc
>
> amd64 part4 # find . -inum 2205290
> ./vservers/machine95/usr/bin/bc
> ./hashfilesstore/33/7b/6e544172a896550e582becb191d55df1713a-00000000
>
> amd64 part4 # find . -inum 2525495
> ./vservers/machine96/usr/bin/bc
> ./hashfilesstore/f2/ec/4d721c12734000a00253c0ce2708fda82203-00000000
>
> amd64 part4 # md5sum ./vservers/machine96/usr/bin/bc
> 29ad08e28e17cb179328103c9835d495 ./vservers/machine96/usr/bin/bc
>
> amd64 part4 # md5sum ./vservers/machine95/usr/bin/bc
> 29ad08e28e17cb179328103c9835d495 ./vservers/machine95/usr/bin/bc
>
> BR,
> Tor Rune Skoglund, trs@swi.no
>
>
>
Received on Mon Feb 1 20:42:02 2016