Add integrity test for huge writes. Fix speed calc problem.
authorAlex Bligh <alex@alex.org.uk>
Sat, 28 May 2011 19:18:13 +0000 (20:18 +0100)
committerAlex Bligh <alex@alex.org.uk>
Sat, 28 May 2011 19:18:13 +0000 (20:18 +0100)
commitcfbb9a0368a267a00f147d08253af5b48ca66ae7
tree433eaebaae9b2ffcecfcff2072efd0b395be2a40
parent4b78826f01ca7856bae2d73e170835072ec3eab3
Add integrity test for huge writes. Fix speed calc problem.

This commit

* Fixes a speed calculation on the integrity tests (we were
  assuming total transferred bytes was the size of the disk,
  which it is for throughputtest but is not for the integrity
  test)

* Adds a binary blob integrityhuge-test.tr, which contains
  instructions to do huge oversize reads and writes with
  flushes over a 50MB disk. This is added as a binary blob
  so everyone has the same data.

* Adds make-integrityhuge.c - a simple program which will make
  the above binary blob (though as it uses random data it will
  not be the same each time)

* Adds an /integrity_huge test to "make check"

* Modifies integritytest() to use properly buffered I/O so it
  does not deadlock.

* Modifies integritytest() to keep handles in a hash table
  to avoid spurious memory accesses if the server returns
  a duff handle.
Makefile.am
integrityhuge-test.tr [new file with mode: 0644]
make-integrityhuge.c [new file with mode: 0644]
nbd-tester-client.c
simple_test