]> git.proxmox.com Git - qemu.git/commit
qcow2: introduce check_refcounts_l1/l2() flags
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 7 Feb 2013 16:15:01 +0000 (17:15 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Feb 2013 20:21:09 +0000 (21:21 +0100)
commit801f70445293ec8ed2d78fd92313c2f71fa48ac9
tree78c214d9281f84860be72df80ddff2d490f4431b
parent8599ea4c42c098d2657ed632ad569f7a665706a4
qcow2: introduce check_refcounts_l1/l2() flags

The check_refcounts_l1/l2() functions have a check_copied argument to
check that the QCOW_O_COPIED flag is consistent with refcount == 1.
This should be a bool, not an int.

However, the next patch introduces qcow2 fragmentation statistics and
also needs to pass an option to check_refcounts_l1/l2().  This is a good
opportunity to use an int flags field.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-refcount.c