summary refs log tree commit diff stats
path: root/util/oslib-posix.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2014-01-24 14:00:43 +0100
committerKevin Wolf <kwolf@redhat.com>2014-01-24 16:53:51 +0100
commitdabfa6cc2e2a06269026fcb42772894f67bd0c3e (patch)
treebacbce1eb4e48ba7397b78bc0128af073cf61555 /util/oslib-posix.c
parent37222900743962e146a82b7077a18c3f39859a19 (diff)
downloadfocaccia-qemu-dabfa6cc2e2a06269026fcb42772894f67bd0c3e.tar.gz
focaccia-qemu-dabfa6cc2e2a06269026fcb42772894f67bd0c3e.zip
block: Fix bdrv_commit return value
bdrv_commit() could return 0 or 1 on success, depending on whether or
not the last sector was allocated in the overlay and whether the overlay
format had a .bdrv_make_empty callback.

Most callers ignored it, but qemu-img commit would print an error
message while the operation actually succeeded.

Also clean up the handling of I/O errors to return the real error code
instead of -EIO.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Diffstat (limited to 'util/oslib-posix.c')
0 files changed, 0 insertions, 0 deletions