]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Allow lazy refcounts to be enabled on the command line
authorKevin Wolf <kwolf@redhat.com>
Fri, 15 Mar 2013 09:35:08 +0000 (10:35 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Mar 2013 15:07:49 +0000 (16:07 +0100)
commit74c4510a3cf7c369ee524c6f8fa8a87cf08ba608
tree47513b79f00b7aba967176fed0cf2738c4a5ee62
parent0006383e1549b6f9b264575d124c553efca19d62
qcow2: Allow lazy refcounts to be enabled on the command line

qcow2 images now accept a boolean lazy_refcounts options. Use it like
this:

  -drive file=test.qcow2,lazy_refcounts=on

If the option is specified on the command line, it overrides the default
specified by the qcow2 header flags that were set when creating the
image.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-cluster.c
block/qcow2.c
block/qcow2.h