virtio-blk: Respect werror option for flushes
authorKevin Wolf <kwolf@redhat.com>
Wed, 20 Oct 2010 11:17:30 +0000 (13:17 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Oct 2010 12:49:35 +0000 (14:49 +0200)
commit8c269b542c5bbbcd74c1664959b223d941a2893b
tree4199e1875c5ec45d9d925f4ee61c41a5216c5903
parente2bcadadc35673223c1445152445d0c9b6887b9e
virtio-blk: Respect werror option for flushes

The werror option now affects not only write requests, but also flush requests.
Previously, it was not possible to stop a VM on a failed flush.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/virtio-blk.c