diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-03-06 18:02:01 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-03-15 16:07:50 +0100 |
commit | 381b487d54ba18c73df9db8452028a330058c505 (patch) | |
tree | ba501d114bd2f5010366e67c306ac08843186c77 /qemu-io.c | |
parent | 3647917919dfce5f731755f0ac5955a64bc12570 (diff) |
qcow2: make is_allocated return true for zero clusters
Otherwise, live migration of the top layer will miss zero clusters and
let the backing file show through. This also matches what is done in qed.
QCOW2_CLUSTER_ZERO clusters are invalid in v2 image files. Check this
directly in qcow2_get_cluster_offset instead of replicating the test
everywhere.
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qemu-io.c')
0 files changed, 0 insertions, 0 deletions