« Previous | Next » 

Revision 381b487d

ID381b487d54ba18c73df9db8452028a330058c505

Added by Paolo Bonzini about 11 years ago

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:
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences