block/qcow: Don't ignore immediate read/write and other failures
commit5614c188c65a8194ae499cb16400cab690a45299
authorStefan Weil <weil@mail.berlios.de>
Sat, 19 Feb 2011 21:18:12 +0000 (19 22:18 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 15 Mar 2011 12:21:14 +0000 (15 13:21 +0100)
tree6c96dfc7e5a6dbea0aad3ce43a30134f66ef2b22
parent40a892b78c9a620bc5ace4164dd566764c35cb53
block/qcow: Don't ignore immediate read/write and other failures

This patch is similar to 171e3d6b9997c98a97d0c525867f7cd9b640cadd
which fixed qcow2:

Returning -EIO is far from optimal, but at least it's an error code.

In addition to read/write failures, -EIO is also returned when
decompress_cluster failed.

Cc: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow.c