Statistics
| Branch: | Revision:

root / block @ 45664345

Name Size
blkdebug.c 12.8 kB
blkverify.c 10.5 kB
bochs.c 6.6 kB
cloop.c 4.9 kB
cow.c 8.6 kB
curl.c 14.8 kB
dmg.c 8.3 kB
nbd.c 5.2 kB
parallels.c 4.4 kB
qcow.c 29.8 kB
qcow2-cache.c 7.3 kB
qcow2-cluster.c 27.8 kB
qcow2-refcount.c 37.8 kB
qcow2-snapshot.c 13.3 kB
qcow2.c 40.4 kB
qcow2.h 7.8 kB
qed-check.c 5.3 kB
qed-cluster.c 4.6 kB
qed-gencb.c 694 Bytes
qed-l2-cache.c 5.4 kB
qed-table.c 8.9 kB
qed.c 39.9 kB
qed.h 9.8 kB
raw-posix-aio.h 1.3 kB
raw-posix.c 37.2 kB
raw-win32.c 11.2 kB
raw.c 3.9 kB
rbd.c 26 kB
rbd_types.h 1.7 kB
sheepdog.c 52 kB
vdi.c 29.2 kB
vmdk.c 25.3 kB
vpc.c 18.1 kB
vvfat.c 80.6 kB

Latest revisions

# Date Author Comment
16fde5f2 02/10/2011 02:24 pm Kevin Wolf

qcow2: Fix order in L2 table COW

When copying L2 tables (this happens only with internal snapshots), the order
wasn't completely safe, so that after a crash you could end up with a L2 table
that has too low refcount, possibly leading to corruption in the long run....

10b758e8 02/10/2011 02:23 pm Kevin Wolf

qed: Report error for unsupported features

Instead of just returning -ENOTSUP, generate a more detailed error.

Unfortunately we don't have a helpful text for features that we don't know yet,
so just print the feature mask. It might be useful at least if someone asks for...

e8cdcec1 02/10/2011 02:23 pm Kevin Wolf

qcow2: Report error for version > 2

The qcow2 driver is now declared responsible for any QCOW image that has
version 2 or greater (before this, version 3 would be detected as raw).

For everything newer than version 2, an error is reported.

Signed-off-by: Kevin Wolf <>...

e0d9c6f9 02/10/2011 02:23 pm Chunqiang Tang

QCOW2: bug fix - read base image beyond its size

This patch fixes the following bug in QCOW2. For a QCOW2 image that is larger
than its base image, when handling a read request straddling over the end of the
base image, the QCOW2 driver attempts to read beyond the end of the base image...

3ab4c7e9 02/10/2011 02:23 pm Kevin Wolf

qcow2: Fix error handling for immediate backing file read failure

Requests could return success even though they failed when bdrv_aio_readv
returned NULL for a backing file read.

Reported-by: Chunqiang Tang <>
Signed-off-by: Kevin Wolf <>

8af36488 02/10/2011 02:23 pm Kevin Wolf

qcow2: Fix error handling for reading compressed clusters

When reading a compressed cluster failed, qcow2 falsely returned success.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Markus Armbruster <>

4f3669ea 02/07/2011 11:07 am Stefan Weil

block/vdi: Fix wrong size in conditionally used memset, memcmp

Error report from cppcheck:
block/vdi.c:122: error: Using sizeof for array given as function argument returns the size of pointer.
block/vdi.c:128: error: Using sizeof for array given as function argument returns the size of pointer....

e1a7107f 02/07/2011 10:44 am Kevin Wolf

qcow2: Really use cache=unsafe for image creation

For cache=unsafe we also need to set BDRV_O_CACHE_WB, otherwise we have some
strange unsafe writethrough mode.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Stefan Hajnoczi <>

1869a653 01/31/2011 11:05 am Blue Swirl

qcow2-refcount: remove write-only variables

Variables l2_modified and l2_size are not really used, remove them.
Spotted by GCC 4.6.0:
CC block/qcow2-refcount.o
/src/qemu/block/qcow2-refcount.c: In function 'qcow2_update_snapshot_refcount':
/src/qemu/block/qcow2-refcount.c:708:37: error: variable 'l2_modified' set but not used [-Werror=unused-but-set-variable]...

1b40bbd1 01/31/2011 11:03 am Kevin Wolf

raw-win32: Fix bdrv_flush return value

Signed-off-by: Kevin Wolf <>

View revisions

Also available in: Atom