Re: [vserver] hashify and memory saving

From: Tor Rune Skoglund <trs_at_swi.no>
Date: Fri 29 Jan 2016 - 16:39:45 GMT
Message-ID: <56AB95D0.1010903@swi.no>

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?

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?

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 Fri Jan 29 17:17:09 2016

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 29 Jan 2016 - 17:17:09 GMT by hypermail 2.1.8