Skip to contentSkip to conversation

blkverify: Add block driver for verifying I/O

PATCH Superseded Stefan Hajnoczi 2 participants 2 messages Sep 4, 2010

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

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.

---
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
index 4a1eaa1..b640ec8 100644
@@ -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
#1 lore raw

I need to fix a build error in this patch. Sorry for the noise, will send v3.

Stefan