xemu/block
Kevin Wolf 80ee15a6b2 qcow2: Increase maximum cluster size to 2 MB
This patch increases the maximum qcow2 cluster size to 2 MB. Starting with 128k
clusters, L2 tables span 2 GB or more of virtual disk space, causing 32 bit
truncation and wraparound of signed integers. Therefore some variables need to
use a larger data type.

While being at reviewing data types, change some integers that are used for
array indices to unsigned. In some places they were checked against some upper
limit but not for negative values. This could avoid potential segfaults with
corrupted qcow2 images.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-10-05 09:32:52 -05:00
..
bochs.c Move block drivers into their own directory 2009-05-14 16:13:46 -05:00
cloop.c Move block drivers into their own directory 2009-05-14 16:13:46 -05:00
cow.c block: use fdatasync instead of fsync if possible 2009-09-11 10:19:46 -05:00
curl.c Fix Sparse warning about "expression using sizeof on a function" 2009-08-01 10:13:44 +00:00
dmg.c Revert "support colon in filenames" 2009-07-09 16:06:38 -05:00
nbd.c Move block drivers into their own directory 2009-05-14 16:13:46 -05:00
parallels.c Move block drivers into their own directory 2009-05-14 16:13:46 -05:00
qcow2-cluster.c qcow2: Increase maximum cluster size to 2 MB 2009-10-05 09:32:52 -05:00
qcow2-refcount.c qcow2: Increase maximum cluster size to 2 MB 2009-10-05 09:32:52 -05:00
qcow2-snapshot.c Fix QCOW2 debugging code to compile again 2009-06-29 08:52:40 -05:00
qcow2.c Fix sys-queue.h conflict for good 2009-09-12 07:36:22 +00:00
qcow2.h qcow2: Increase maximum cluster size to 2 MB 2009-10-05 09:32:52 -05:00
qcow.c qcow1: Fix qcow_aio_writev 2009-07-10 13:44:29 -05:00
raw-posix-aio.h block: add aio_flush operation 2009-09-11 10:19:46 -05:00
raw-posix.c block: add aio_flush operation 2009-09-11 10:19:46 -05:00
raw-win32.c block: add bdrv_probe_device method 2009-06-15 14:04:22 +02:00
vdi.c Check availability of uuid header / library 2009-10-04 13:24:45 +02:00
vmdk.c vmdk: Fix backing file handling 2009-07-22 10:58:47 -05:00
vpc.c Fix spelling in comment. 2009-09-09 14:57:20 -05:00
vvfat.c Revert "Get rid of _t suffix" 2009-10-01 16:12:16 -05:00