]> git.proxmox.com Git - qemu.git/commit
qcow2: Fix "total clusters" number in bdrv_check
authorKevin Wolf <kwolf@redhat.com>
Tue, 26 Mar 2013 16:49:54 +0000 (17:49 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Mar 2013 10:52:42 +0000 (11:52 +0100)
commitc349ca4bb2dbca53c15147d283ea9f6c94376c6c
treedae0ff6fbcf082d54ab2f80140f7c161fa5863e1
parent6f74928192e8e8a16f64b6208171eb13af890bbc
qcow2: Fix "total clusters" number in bdrv_check

This should be based on the virtual disk size, not on the size of the
image.

Interesting observation: With some VM state stored in the image file,
percentages higher than 100% are possible, even though snapshots
themselves are ignored. This is a qcow2 bug to be fixed another day: The
VM state should be discarded in the active L2 tables after completing
the snapshot creation.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-refcount.c
tests/qemu-iotests/044.out