]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools, qcow: Add the support for copy-on-write cluster
authorLan Tianyu <tianyu.lan@intel.com>
Tue, 29 Nov 2011 07:30:26 +0000 (15:30 +0800)
committerPekka Enberg <penberg@kernel.org>
Tue, 29 Nov 2011 18:07:12 +0000 (20:07 +0200)
commitf44d87883dcda5897fe5f16d99e30156f88c9c93
treef120ef851057c5fdddc10214381debdbc8d0a1b7
parent870a88b23331118c7999451a7f5601de517251f2
kvm tools, qcow: Add the support for copy-on-write cluster

When meeting request to write the cluster without copied flag,
allocate a new cluster and write original data with modification
to the new cluster. This also adds support for the writing operation
of the qcow2 compressed image. After testing, image file can pass
through "qemu-img check". The performance is needed to be improved.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/disk/qcow.c
tools/kvm/include/kvm/qcow.h