qemu-e2k/block
Stefan Hajnoczi 19dfc44a94 qed: Fix consistency check on 32-bit hosts
The qed_bytes_to_clusters() function is normally used with size_t
lengths.  Consistency check used it with file size length and therefore
failed on 32-bit hosts when the image file is 4 GB or more.

Make qed_bytes_to_clusters() explicitly 64-bit and update consistency
check to keep 64-bit cluster counts.

Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-04-27 16:21:00 +02:00
..
blkdebug.c
blkverify.c
bochs.c
cloop.c
cow.c
curl.c
dmg.c
nbd.c NBD device: Separate out parsing configuration and opening sockets. 2011-04-07 13:51:48 +02:00
parallels.c
qcow2-cache.c Reorganize struct Qcow2Cache for better struct packing 2011-01-31 10:03:00 +01:00
qcow2-cluster.c qcow2: Fix order in L2 table COW 2011-02-10 13:24:29 +01:00
qcow2-refcount.c qcow2-refcount: remove write-only variables 2011-01-31 10:05:34 +01:00
qcow2-snapshot.c block/qcow2.c: rename qcow_ functions to qcow2_ 2010-12-17 16:15:01 +01:00
qcow2.c qcow2: Report error for version > 2 2011-02-10 13:23:56 +01:00
qcow2.h qcow2: Add bdrv_discard support 2011-01-31 10:03:00 +01:00
qcow.c block/qcow: Don't ignore immediate read/write and other failures 2011-03-15 13:21:14 +01:00
qed-check.c qed: Fix consistency check on 32-bit hosts 2011-04-27 16:21:00 +02:00
qed-cluster.c qed: Add support for zero clusters 2011-04-13 12:06:41 +02:00
qed-gencb.c qed: Table, L2 cache, and cluster functions 2010-12-17 16:11:04 +01:00
qed-l2-cache.c qed: Table, L2 cache, and cluster functions 2010-12-17 16:11:04 +01:00
qed-table.c qed: Table, L2 cache, and cluster functions 2010-12-17 16:11:04 +01:00
qed.c qed: Add support for zero clusters 2011-04-13 12:06:41 +02:00
qed.h qed: Fix consistency check on 32-bit hosts 2011-04-27 16:21:00 +02:00
raw-posix-aio.h
raw-posix.c
raw-win32.c raw-win32: Fix bdrv_flush return value 2011-01-31 10:03:00 +01:00
raw.c
rbd_types.h
rbd.c
sheepdog.c get rid of private bitmap functions in block/sheepdog.c, use generic ones 2011-04-01 22:23:06 +02:00
vdi.c Fix trivial "endianness bugs" 2011-04-03 21:42:57 +02:00
vmdk.c
vpc.c vpc.c: Use get_option_parameter() does the search 2011-04-13 12:31:41 +02:00
vvfat.c vvfat: fix a file descriptor leak 2011-01-12 19:48:58 +00:00