blkverify: Add block driver for verifying I/O
Subsystems (2)
PATCH v4 1/1 blkverify: Add block driver for verifying I/O
The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used to verify that data read from the test image is correct.
See docs/blkverify.txt for more information.
---
v4:
* Make blkverify_aio_cancel() wait for request to fully complete
* Delete s->test_file on .open() failure
* Merge overlapping buffer allocation logic in blkverify_iovec_clone()
v3:
* Fix compile error in blkverify_aio_cancel()
v2:
* Implement aio_cancel() by waiting for pending requests
* Fix conflict in Makefile.objs
Makefile.objs | 2 +- block/blkverify.c | 381 ++++++++++++++++++++++++++++++++++++++++++++++++++++ docs/blkverify.txt | 69 ++++++++++ 3 files changed, 451 insertions(+), 1 deletions(-) create mode 100644 block/blkverify.c create mode 100644 docs/blkverify.txt
Makefile.objs +1 -1
@@ -14,7 +14,7 @@ block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o block-nested-y += raw.o cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o -block-nested-y += parallels.o nbd.o blkdebug.o sheepdog.o +block-nested-y += parallels.o nbd.o blkdebug.o sheepdog.o blkverify.o block-nested-$(CONFIG_WIN32) += raw-win32.o block-nested-$(CONFIG_POSIX) += raw-posix.o block-nested-$(CONFIG_CURL) += curl.o
block/blkverify.c new file +381 -0
381 lines not on this page · raw message
docs/blkverify.txt new file +69 -0
69 lines not on this page · raw message
Signature · 1 line
1.7.1
Kevin Wolf
AppliedAm 21.09.2010 14:44, schrieb Stefan Hajnoczi:
Quoted 9 lines
The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used to verify that data read from the test image is correct.
See
docs/blkverify.txtfor more information.Signed-off-by Stefan Hajnoczi <[email protected]>
Thanks, applied to the block branch.
Kevin
Am 21.09.2010 14:44, schrieb Stefan Hajnoczi:
Quoted 9 lines
The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used to verify that data read from the test image is correct.
See
docs/blkverify.txtfor more information.Signed-off-by Stefan Hajnoczi <[email protected]>
Heh, so four versions is actually not enough. This breaks the mingw32 build (EINPROGESS is not defined).
Kevin
Quoted 7 lines · Kevin Wolf
Am 21.09.2010 14:44, schrieb Stefan Hajnoczi:
Quoted 6 lines
The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used to verify that data read from the test image is correct.
Quoted 6 lines
Quoted 3 lines
See
docs/blkverify.txtfor more information.Signed-off-by Stefan Hajnoczi <[email protected]>Heh, so four versions is actually not enough. This breaks the mingw32 build (EINPROGESS is not defined).
For Windows we need to include qemu_socket.h so EINPROGRESS is defined. I will send a v5, thank you for pointing this out.
Stefan