Statistics
| Branch: | Revision:

root / block @ 6c6ea921

Name Size
blkdebug.c 12.7 kB
bochs.c 6.6 kB
cloop.c 4.9 kB
cow.c 8.9 kB
curl.c 14.8 kB
dmg.c 8.3 kB
nbd.c 4.7 kB
parallels.c 4.4 kB
qcow.c 29.9 kB
qcow2-cluster.c 26.7 kB
qcow2-refcount.c 36.8 kB
qcow2-snapshot.c 12.5 kB
qcow2.c 40.3 kB
qcow2.h 6.9 kB
raw-posix-aio.h 1.3 kB
raw-posix.c 35.6 kB
raw-win32.c 11 kB
raw.c 3.5 kB
vdi.c 29.1 kB
vmdk.c 25.4 kB
vpc.c 17.8 kB
vvfat.c 80.3 kB

Latest revisions

# Date Author Comment
6c6ea921 06/15/2010 10:41 am Kevin Wolf

vpc: Read/write multiple sectors at once

This changes the vpc block driver (for VHD) to read/write multiple sectors at
once instead of doing a request for each single sector.

Before this, running qemu-iotests for VPC took ages, now it's actually quite
reasonable to run it always (down from ~1 hour to 40 seconds for me)....

a4673e27 06/14/2010 06:33 pm Anthony Liguori

Merge remote branch 'kwolf/for-anthony' into staging

Conflicts:
hw/pc.c

11165820 06/13/2010 09:00 pm Paul Brook

Move stdbool.h

Move inclusion of stdbool.h to common header files, instead of including
in an ad-hoc manner.

Signed-off-by: Paul Brook <>

9040385d 06/04/2010 12:43 pm Jes Sorensen

Cleanup: raw-posix.c: Be more consistent using BDRV_SECTOR_SIZE instead of 512

Clean up raw-posix.c to be more consistent using BDRV_SECTOR_SIZE
instead of hard coded 512 values.

Signed-off-by: Jes Sorensen <>
Signed-off-by: Kevin Wolf <>

86fa8da8 05/28/2010 02:29 pm Kevin Wolf

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...

25408c09 05/28/2010 02:29 pm Kevin Wolf

qcow2: Fix corruption after refblock allocation

Refblock allocation code needs to take into consideration that update_refcount
will load a different refcount block into the cache, so it must initialize the
cache for a new refcount block only afterwards. Not doing this means that not...

ed0df867 05/28/2010 02:29 pm Kevin Wolf

qcow2: Return right error code in write_refcount_block_entries

write_refcount_block_entries used to return -EIO for any errors. Change this to
return the real error code.

Signed-off-by: Kevin Wolf <>

55c17e98 05/28/2010 02:29 pm Kevin Wolf

qcow2: Change l2_load to return 0/-errno

Provide the error code to the caller instead of just indicating success/error.

Signed-off-by: Kevin Wolf <>

1c46efaa 05/28/2010 02:29 pm Kevin Wolf

qcow2: Allow qcow2_get_cluster_offset to return errors

qcow2_get_cluster_offset() looks up a given virtual disk offset and returns the
offset of the corresponding cluster in the image file. Errors (e.g. L2 table
can't be read) are currenctly indicated by a return value of 0, which is...

175e1152 05/28/2010 02:14 pm Kevin Wolf

qcow2: Fix error handling in l2_allocate

l2_allocate has some intermediate states in which the image is inconsistent.
Change the order to write to the L1 table only after the new L2 table has
successfully been initialized.

Also reset the L2 cache in failure case, it's very likely wrong....

View revisions

Also available in: Atom