diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-06 00:22:38 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-06 00:36:46 +0100 |
commit | 051c0a77360a629e047d5267b05cde4cdba0e064 (patch) | |
tree | 545fbd35028652c6ec551f933219cd64de161ff6 /libihash | |
parent | 0c2f60d3cbc3a23736f65dd96308dabdde43d9b2 (diff) | |
download | hurd-051c0a77360a629e047d5267b05cde4cdba0e064.tar.gz hurd-051c0a77360a629e047d5267b05cde4cdba0e064.tar.bz2 hurd-051c0a77360a629e047d5267b05cde4cdba0e064.zip |
libfshelp/get-identity: Use 64bit hashing for inodes
Reported by Brent W. Baccala.
hurd_ihash_key_t is 32bit only on 32bit platforms, so we need the same
hashing functions as in libdiskfs/node-cache.c.
* libfshelp/get-identity.c (mix_fasthash): New macro.
(hash, compare): New functions.
(idhash): Use HURD_IHASH_INITIALIZER_GKI instead of HURD_IHASH_INITIALIZER
to pass hash and compare.
(fshelp_get_identity): Pass address of fileno to hurd_ihash_find and
hurd_ihash_add instead of fileno itself.
Diffstat (limited to 'libihash')
0 files changed, 0 insertions, 0 deletions