Re: [Qemu-devel] [PATCH v19 01/16] vmdk: Optimize cluster allocation

2014-05-14 Thread Fam Zheng
This patch is included by mistake, there should already be a seperate patch on the list. Please ignore this one. Fam

[Qemu-devel] [PATCH v19 01/16] vmdk: Optimize cluster allocation

2014-05-11 Thread Fam Zheng
This drops the unnecessary bdrv_truncate() from, and also improves, cluster allocation code path. Before, when we need a new cluster, get_cluster_offset truncates the image to bdrv_getlength() + cluster_size, and returns the offset of added area, i.e. the image length before truncating. This is n