]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-img.c
qemu-img: refactor dump_map_entry JSON format output
authorEyal Moscovici <eyal.moscovici@oracle.com>
Wed, 13 May 2020 13:36:28 +0000 (16:36 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 18 May 2020 16:02:05 +0000 (11:02 -0500)
commite46c0b18cfd02195a0d527ca73f3ed9f3ce5eacb
tree8a813b3b494dfbb73a28b9ec227b1f50588390c6
parent8f282e83edd3d1b4ea6e9258f5a4081b490c33cc
qemu-img: refactor dump_map_entry JSON format output

Previously dump_map_entry identified whether we need to start a new JSON
array based on whether start address == 0. In this refactor we remove
this assumption as in following patches we will allow map to start from
an arbitrary position.

Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: Mark Kanda <mark.kanda@oracle.com>
Signed-off-by: Eyal Moscovici <eyal.moscovici@oracle.com>
Message-Id: <20200513133629.18508-4-eyal.moscovici@oracle.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
qemu-img.c