blkverify: Add block driver for verifying I/O
Subsystems (2)
PATCH v2 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.
Signed-off-by Stefan Hajnoczi <[email protected]>
---
v2:
* Implement aio_cancel() by waiting for pending requests
* Fix conflict in Makefile.objs
Makefile.objs | 2 +- block/blkverify.c | 324 ++++++++++++++++++++++++++++++++++++++++++++++++++++ docs/blkverify.txt | 69 +++++++++++ 3 files changed, 394 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 +324 -0
324 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
I need to fix a build error in this patch. Sorry for the noise, will send v3.
Stefan