]> xenbits.xensource.com Git - qemu-xen-unstable.git/commit
qemu-io: Fix 'map' output
authorKevin Wolf <kwolf@redhat.com>
Mon, 13 May 2013 13:31:34 +0000 (15:31 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 24 May 2013 14:17:55 +0000 (16:17 +0200)
commita00e81e98f71c91a35b96bcd8ae431a86f42378d
tree633b8316d6c9cdd08f7df561547e5a140fc09ca2
parentc8a83e8500329d82f1282c4905be11a39078007f
qemu-io: Fix 'map' output

The output of the 'map' command in qemu-io used to directly resemble
bdrv_is_allocated() and could contain many lines for small chunks that
all have the same allocation status. After this patch, they will be
coalesced into a single output line for a large chunk.

As a side effect, the command gains some error handling.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io.c