Re: [Qemu-devel] [PATCH v2] qcow2: Fix creation of large images

2010-04-22 Thread Christoph Hellwig
On Mon, Apr 19, 2010 at 03:21:21PM +0200, Kevin Wolf wrote: > qcow_create2 assumes that the new image will only need one cluster for its > refcount table initially. Obviously that's not true any more when the image is > big enough (exact value depends on the cluster size). > > This patch calculate

[Qemu-devel] [PATCH v2] qcow2: Fix creation of large images

2010-04-19 Thread Kevin Wolf
qcow_create2 assumes that the new image will only need one cluster for its refcount table initially. Obviously that's not true any more when the image is big enough (exact value depends on the cluster size). This patch calculates the refcount table size dynamically. Signed-off-by: Kevin Wolf ---