]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
tests: add nbd-fault-injector.py utility
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 26 Feb 2014 14:30:19 +0000 (15:30 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 14 Mar 2014 15:28:28 +0000 (16:28 +0100)
commit1e8ece0db3e8604d3a17bbd2bd1277161851a44a
tree2dab4999222eb1d7c03342d32ac4adf42574b481
parent4a41a2d68a684241aca96dba066e0699941b730d
tests: add nbd-fault-injector.py utility

The nbd-fault-injector.py script is a special kind of NBD server.  It
throws away all writes and produces zeroes for reads.  Given a list of
fault injection rules, it can simulate NBD protocol errors and is useful
for testing NBD client error handling code paths.

See the patch for documentation.  This scripts is modelled after Kevin
Wolf <kwolf@redhat.com>'s blkdebug block driver.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/qemu-iotests/nbd-fault-injector.py [new file with mode: 0755]