Re: [Qemu-devel] [PATCH 2/2] qcow2: Fix bdrv_write_compressed error handling

2011-10-18 Thread Dong Xu Wang
On Tue, Oct 18, 2011 at 11:47 PM, Kevin Wolf wrote: > If during allocation of compressed clusters the cluster was already allocated > uncompressed, fail and properly release the l2_table (the latter avoids a > failed assertion). > > While at it, make it return some real error numbers instead of

[Qemu-devel] [PATCH 2/2] qcow2: Fix bdrv_write_compressed error handling

2011-10-18 Thread Kevin Wolf
If during allocation of compressed clusters the cluster was already allocated uncompressed, fail and properly release the l2_table (the latter avoids a failed assertion). While at it, make it return some real error numbers instead of -1. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |