commit | 381b487d54ba18c73df9db8452028a330058c505 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Mar 06 18:02:01 2013 +0100 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Mar 15 16:07:50 2013 +0100 |
tree | ba501d114bd2f5010366e67c306ac08843186c77 | |
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>