nbd-tester-client: analyse bad data using hash function huersistic
authorAlex Bligh <alex@alex.org.uk>
Sun, 5 Jun 2011 16:57:16 +0000 (17:57 +0100)
committerWouter Verhelst <w@uter.be>
Thu, 9 Jun 2011 14:41:28 +0000 (16:41 +0200)
commit251f31049f29f0a8b7198d9dc645e06de8165a90
tree3a9fc73b26c24e8efecc54a41440fcafb85764f3
parent74c21c48b296b475a17bc26844223bb9a709d254
nbd-tester-client: analyse bad data using hash function huersistic

The hash function used by the integrity test was designed specifically
such that with < (2^32) blocks and < (2^32) read/write operations, it
can accurately guess how the bad data returned was generated. This
patch uses this huersistic to provide a guess as to what is wrong.
EG if it prints out a correct block number but a bad sequence number,
it is likely the server is disordering writes or has missed writes.
nbd-tester-client.c