raw-posix: Handle errors in raw_create
commit1e37d05904e300a0bfc8e3240e24ecc83d54c2e3
authorStefan Weil <weil@mail.berlios.de>
Sat, 11 Jul 2009 14:43:37 +0000 (11 16:43 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 16 Jul 2009 22:28:49 +0000 (16 17:28 -0500)
treebf11091805bcb5432c303342614fbefd5685026f
parent09ac35ac311c8d7309b5ac2d67fbcf3e4d3fd860
raw-posix: Handle errors in raw_create

In qemu-iotests, some large images are created using qemu-img.

Without checks for errors, qemu-img will just create an
empty image, and later read / write tests will fail.

With the patch, failures during image creation are detected
and reported.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/raw-posix.c