summary refs log tree commit diff stats
path: root/include/qapi/string-input-visitor.h
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2015-01-06 18:48:10 +0100
committerKevin Wolf <kwolf@redhat.com>2015-02-06 17:24:21 +0100
commit8daf425794ed624083de98caab04b9fedb873420 (patch)
tree89241780508e5fd5275f078d1694be959254eb5a /include/qapi/string-input-visitor.h
parent0599e56ed468d245148530eb194be4a5056a0583 (diff)
downloadfocaccia-qemu-8daf425794ed624083de98caab04b9fedb873420.tar.gz
focaccia-qemu-8daf425794ed624083de98caab04b9fedb873420.zip
block/dmg: set virtual size to a non-zero value
Right now the virtual size is always reported as zero which makes it
impossible to convert between formats.

After this patch, the number of sectors will be read from the trailer
("koly" block).

To verify the behavior, the output of `dmg2img foo.dmg foo.img` was
compared against `qemu-img convert -f dmg -O raw foo.dmg foo.raw`. The
tests showed that the file contents are exactly the same, except that
QEMU creates a slightly larger file (it matches the total sectors
count).

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 1420566495-13284-8-git-send-email-peter@lekensteyn.nl
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/qapi/string-input-visitor.h')
0 files changed, 0 insertions, 0 deletions