]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Add refcount_bits to format-specific info
authorMax Reitz <mreitz@redhat.com>
Tue, 10 Feb 2015 20:28:44 +0000 (15:28 -0500)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Mar 2015 13:02:20 +0000 (14:02 +0100)
commit0709c5a1530b046183b6e96d9631affcff76c1fc
tree5305888ab740c79cb397bb47381c503c79bcc848
parent346a53df38e29021e4a9e8c2a759b05744902857
qcow2: Add refcount_bits to format-specific info

Add the bit width of every refcount entry to the format-specific
information.

In contrast to lazy_refcounts and the corrupt flag, this should be
always emitted, even for compat=0.10 although it does not support any
refcount width other than 16 bits. This is because if a boolean is
optional, one normally assumes it to be false when omitted; but if an
integer is not specified, it is rather difficult to guess its value.

This new field breaks some test outputs, fix them.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c
qapi/block-core.json
tests/qemu-iotests/060.out
tests/qemu-iotests/065
tests/qemu-iotests/067.out
tests/qemu-iotests/082.out
tests/qemu-iotests/089.out