Re: [Qemu-devel] Qcow2 allocate and free cluster

2012-10-05 Thread Stefan Hajnoczi
On Fri, Sep 21, 2012 at 11:15:42AM +0530, Gaurab Basu wrote: > My question is how the clusters are allocated. What I have understood, it > maintains a free_cluster_index to manage which host clusters are free. > In the function update_refcount(), if a cluster is freed it makes the > free_cluster_in

[Qemu-devel] Qcow2 allocate and free cluster

2012-09-21 Thread Gaurab Basu
Hi, I have a question regarding how the internal details of the qcow2 image is managed. My question is how the clusters are allocated. What I have understood, it maintains a free_cluster_index to manage which host clusters are free. In the function update_refcount(), if a cluster is freed it make