]> git.proxmox.com Git - qemu.git/commit
qcow2: Cache refcount blocks during snapshot creation
authorKevin Wolf <kwolf@redhat.com>
Fri, 26 Jun 2009 18:19:38 +0000 (20:19 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Jun 2009 19:18:07 +0000 (14:18 -0500)
commit3b88e52b41fe77728b4accb68e14bed98bdc75d3
treebb12b001b4a7334cac55fd0e4c3eea3b77b46133
parent22afa7b5b67bb8bc58939d100363ee6753a50467
qcow2: Cache refcount blocks during snapshot creation

The really time consuming part of snapshotting is to adjust the reference count
of all clusters. Currently after each adjusted cluster the refcount block is
written to disk.

Don't write each single byte immediately to disk but cache all writes to the
refcount block and write them out once we're done with the block.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/qcow2-refcount.c