qemu/block
Kevin Wolf 05121aedc4 qcow2: Factor next_refcount_table_size out
When the refcount table grows, it doesn't only grow by one entry but reserves
some space for future refcount blocks. The algorithm to calculate the number of
entries stays the same with the fixes, so factor it out before replacing the
rest.

As Juan suggested take the opportunity to simplify the code a bit.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-02-23 13:23:29 -06:00
..
bochs.c Read-only device changed to opens it's file for read-only. 2010-01-26 15:42:01 -06:00
cloop.c
cow.c block/cow.c: fix warnings with _FORTIFY_SOURCE 2010-01-26 14:59:20 -06:00
curl.c don't dereference NULL after failed strdup 2010-02-10 14:00:53 -06:00
dmg.c
nbd.c block: kill BDRV_O_CREAT 2010-01-26 15:42:02 -06:00
parallels.c Read-only device changed to opens it's file for read-only. 2010-01-26 15:42:01 -06:00
qcow.c block/qcow.c: fix warnings with _FORTIFY_SOURCE 2010-01-26 14:59:20 -06:00
qcow2-cluster.c qcow2: Fix access after end of array 2010-02-19 15:53:54 -06:00
qcow2-refcount.c qcow2: Factor next_refcount_table_size out 2010-02-23 13:23:29 -06:00
qcow2-snapshot.c qcow2: Don't ignore qcow2_alloc_clusters return value 2010-01-26 14:59:19 -06:00
qcow2.c qcow2: rename two QCowAIOCB members 2010-01-26 15:45:00 -06:00
qcow2.h qcow2: Fix signedness bugs 2010-02-10 11:56:57 -06:00
raw-posix-aio.h
raw-posix.c block/raw-posix: Abort on pread beyond end of non-growable file 2010-01-26 16:41:07 -06:00
raw-win32.c block: kill BDRV_O_CREAT 2010-01-26 15:42:02 -06:00
vdi.c
vmdk.c block/vmdk.o: fix warnings with _FORTIFY_SOURCE 2010-01-26 14:59:20 -06:00
vpc.c
vvfat.c don't dereference NULL after failed strdup 2010-02-10 14:00:53 -06:00