summaryrefslogtreecommitdiff
path: root/migration-exec.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2014-07-07 17:00:37 +0200
committerKevin Wolf <kwolf@redhat.com>2014-07-09 15:50:11 +0200
commit01fb2705bd19a6e9c1207446793064dbd141df5f (patch)
tree5fdb13f3e19f7d52bef064098ea7cd76d6481453 /migration-exec.c
parentd40593dd9033d39a5e4cc32915c5eb28f3e858b6 (diff)
downloadqemu-01fb2705bd19a6e9c1207446793064dbd141df5f.tar.gz
qemu-01fb2705bd19a6e9c1207446793064dbd141df5f.tar.bz2
qemu-01fb2705bd19a6e9c1207446793064dbd141df5f.zip
block: Fix bdrv_is_allocated() return value
bdrv_is_allocated() should return either 0 or 1 in successful cases. We're lucky that currently, the callers that rely on this (e.g. because they check for ret == 1) don't seem to break badly. They just might skip some optimisation or in the case of qemu-io 'map' print separate lines where a single line would suffice. In theory, a wrong allocation status could lead to image corruption with certain operations, so let's fix this quickly. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'migration-exec.c')
0 files changed, 0 insertions, 0 deletions