qemu-e2k/block
Kevin Wolf 86fa8da837 qcow2: Fix corruption after error in update_refcount
After it is done with updating refcounts in the cache, update_refcount writes
all changed entries to disk. If a refcount block allocation fails, however,
there was no change yet and therefore first_index = last_index = -1. Don't
treat -1 as a normal sector index (resulting in a 512 byte write!) but return
without updating anything in this case.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-05-28 13:29:16 +02:00
..
blkdebug.c block: Avoid unchecked casts for AIOCBs 2010-05-17 10:20:05 +02:00
bochs.c bochs: use qemu block API 2010-05-17 10:20:05 +02:00
cloop.c cloop: use qemu block API 2010-05-17 10:20:04 +02:00
cow.c
curl.c Fix %lld or %llx printf format use 2010-05-22 08:02:12 +00:00
dmg.c dmg: use qemu block API 2010-05-17 10:20:05 +02:00
nbd.c
parallels.c parallels: use qemu block API 2010-05-17 10:20:05 +02:00
qcow2-cluster.c qcow2: Change l2_load to return 0/-errno 2010-05-28 13:29:12 +02:00
qcow2-refcount.c qcow2: Fix corruption after error in update_refcount 2010-05-28 13:29:16 +02:00
qcow2-snapshot.c
qcow2.c qcow2: Allow qcow2_get_cluster_offset to return errors 2010-05-28 13:29:11 +02:00
qcow2.h qcow2: Allow qcow2_get_cluster_offset to return errors 2010-05-28 13:29:11 +02:00
qcow.c block: Avoid unchecked casts for AIOCBs 2010-05-17 10:20:05 +02:00
raw-posix-aio.h
raw-posix.c raw-posix: Use pread/pwrite instead of lseek+read/write 2010-05-03 10:07:31 +02:00
raw-win32.c
raw.c
vdi.c block/vdi: Fix image opening and creation for odd disk sizes 2010-05-17 10:20:05 +02:00
vmdk.c vmdk: Convert to bdrv_open 2010-05-03 10:07:31 +02:00
vpc.c block/vpc: Fix conversion from size to disk geometry 2010-05-17 10:20:05 +02:00
vvfat.c vvfat: More build fixes with DEBUG 2010-05-21 11:49:19 +02:00