Hi, (I'm Cc'ing Prasad too.) On Thu, Nov 17, 2011 at 9:50 AM, Lan Tianyu <tianyu.lan@xxxxxxxxx> wrote: > When meeting request to write the cluster without copied flag, > allocate a new cluster and write original data with modification > to the new cluster. This also can add support for the writing > operation of the qcow2 compressed image. > > Signed-off-by: Lan Tianyu <tianyu.lan@xxxxxxxxx> Looks reasonable - I'll take a more detailed look later today. How did you test this? Have you checked the QCOW2 image after copy-on-write with "qemu-img check"? There's some existing issues that seem to cause corruption which is why we're forcing read-only. It'd be nice to fix those issues before adding more features. ;-) Pekka -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html