Date: Wed, 8 May 2019 14:39:25 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: Peter Eriksson <pen@lysator.liu.se>, "freebsd-fs@freebsd.org" <freebsd-fs@FreeBSD.org> Subject: test hash functions for fsid Message-ID: <YQBPR0101MB2260D82BAE348FB82902508CDD320@YQBPR0101MB2260.CANPRD01.PROD.OUTLOOK.COM>
next in thread | raw e-mail | index | archive | help
--_002_YQBPR0101MB2260D82BAE348FB82902508CDD320YQBPR0101MB2260_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, If you have a FreeBSD system with lots of local file systems (1000s), maybe= you could run the attached program on it and email me the stats. I'm just trying to see how well these hash functions work on fsids. Thanks in advance, rick --_002_YQBPR0101MB2260D82BAE348FB82902508CDD320YQBPR0101MB2260_ Content-Type: text/plain; name="testhash.c" Content-Description: testhash.c Content-Disposition: attachment; filename="testhash.c"; size=1355; creation-date="Wed, 08 May 2019 14:39:21 GMT"; modification-date="Wed, 08 May 2019 14:39:21 GMT" Content-Transfer-Encoding: base64 I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzeXMvcGFyYW0uaD4KI2luY2x1ZGUgPHN5cy9m bnZfaGFzaC5oPgojaW5jbHVkZSA8c3lzL2hhc2guaD4KI2luY2x1ZGUgPHN5cy9tb3VudC5oPgoK aW50Cm1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewoJaW50IGgxWzI1Nl0sIGgyWzI1Nl0s IGgzWzI1Nl0sIGg0WzI1Nl0sIGksIG1heCwgbWluLCBudW07CglzdHJ1Y3Qgc3RhdGZzICptbnRi dWZwOwoKCWZvciAoaSA9IDA7IGkgPCAyNTY7IGkrKykgewoJCWgxW2ldID0gMDsKCQloMltpXSA9 IDA7CgkJaDNbaV0gPSAwOwoJCWg0W2ldID0gMDsKCX0KCW51bSA9IGdldG1udGluZm8oJm1udGJ1 ZnAsIE1OVF9OT1dBSVQpOwoJZm9yIChpID0gMDs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wgbWluKTsKCW1pbiA9IDEwMDAwMDAw OwoJbWF4ID0gMDsKCWZvciAoaSA9IDA7IGkgPCAyNTY7IGkrKykgewoJCWlmIChoNFtpXSA+IG1h eCkKCQkJbWF4ID0gaDRbaV07CgkJaWYgKGg0W2ldIDwgbWluKQoJCQltaW4gPSBoNFtpXTsKCX0K CXByaW50ZigiSDQ6IG1heD0lZCBtaW49JWRcbiIsIG1heCwgbWluKTsKfQo= --_002_YQBPR0101MB2260D82BAE348FB82902508CDD320YQBPR0101MB2260_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQBPR0101MB2260D82BAE348FB82902508CDD320>