]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools, qcow: Delayed L1 table writeout
authorPekka Enberg <penberg@kernel.org>
Sat, 9 Jul 2011 07:23:07 +0000 (10:23 +0300)
committerPekka Enberg <penberg@kernel.org>
Sun, 10 Jul 2011 12:23:22 +0000 (15:23 +0300)
commit5e38a00429e5d65bbeeb348593c5b5ee62458d4f
treeb19afaa88c6fbe6f79ddf154f98bfcc401989d09
parent50bcd9117ada565de823fd4e9e680bc021b5bb8f
kvm tools, qcow: Delayed L1 table writeout

This patch moves L1 table writeout to qcow_disk_flush(). The rationale here is
that while writes to clusters that don't have L2 table allocated on-disk are
volatile until VIRTIO_BLK_T_FLUSH is issued, we never corrupt the disk image.

Cc: Asias He <asias.hejun@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Prasad Joshi <prasadjoshi124@gmail.com>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/disk/qcow.c