summaryrefslogtreecommitdiffstats
path: root/console.c
diff options
context:
space:
mode:
authorKevin Wolf2009-07-20 16:48:43 +0200
committerAnthony Liguori2009-07-22 17:58:47 +0200
commita7824a886ed50eb4fe3c6fcd6afd8814a6973583 (patch)
treeca62f5be8f6e47a181bc27ad9555941472f9b914 /console.c
parentqmu-img: fix qemu-img convert to generate a valid image when the source refer... (diff)
downloadqemu-a7824a886ed50eb4fe3c6fcd6afd8814a6973583.tar.gz
qemu-a7824a886ed50eb4fe3c6fcd6afd8814a6973583.tar.xz
qemu-a7824a886ed50eb4fe3c6fcd6afd8814a6973583.zip
qemu-io: Rework alloc command
The alloc command in qemu-io is mostly useless currently. Instead of doing a single call to bdrv_is_allocated, we must call bdrv_is_allocated in a loop until we have found out for each requested sector if it is allocated or not (bdrv_is_allocated returns a number of sectors that are known to be in the same state as the first one, but it is not required to include all of them) This changes the output format of the alloc command so that a change to the expected output of qemu-iotests 019 is necessary once this is included. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'console.c')
0 files changed, 0 insertions, 0 deletions