]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Add support for the read operation of qcow and qcow2 compressed image
authorLan Tianyu <tianyu.lan@intel.com>
Wed, 12 Oct 2011 13:00:03 +0000 (21:00 +0800)
committerPekka Enberg <penberg@kernel.org>
Fri, 14 Oct 2011 12:49:27 +0000 (15:49 +0300)
commit7601ba05054adc7051619bbe429989368a7fee8a
tree782911a0831e8668dc0dbcc3cdae504116b6891b
parent5a00c132e7c1943f7ffcf365f1f44e59479ddc1f
kvm tools: Add support for the read operation of qcow and qcow2 compressed image

This patch adds the decompression operation when confirming the qcow or
qcow2 image is compressed. This patch also divides the read cluster
fucntion into two which are respective for qcow and qcow2 in order to be
convenient to support these two kind images. Add some macros for qcow.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
[ penberg@kernel.org: make zlib optional ]
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/Makefile
tools/kvm/config/feature-tests.mak
tools/kvm/disk/qcow.c
tools/kvm/include/kvm/qcow.h