block: Add blkdebug hook for copy-on-read
commitd855ebcd3cca4080a81aeec9c0a27af006734280
authorEric Blake <eblake@redhat.com>
Thu, 5 Oct 2017 19:02:46 +0000 (5 14:02 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Oct 2017 14:28:58 +0000 (6 16:28 +0200)
tree09118affc256052bc8504ac07d945ccd2055aa97
parent8803714b53243816e96a759de3cfd22625230023
block: Add blkdebug hook for copy-on-read

Make it possible to inject errors on writes performed during a
read operation due to copy-on-read semantics.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c
qapi/block-core.json