Statistics
| Branch: | Revision:

root / block @ a1b87fe0

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.7 kB
qcow2-refcount.c 37.8 kB
qcow2-snapshot.c 13.3 kB
qcow2.c 40.1 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.6 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
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]...

bf595021 01/31/2011 11:03 am Jes Sorensen

Reorganize struct Qcow2Cache for better struct packing

Move size after the two pointers in struct Qcow2Cache to get better
packing of struct elements on 64 bit architectures.

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

b4447363 01/31/2011 11:03 am MORITA Kazutaka

sheepdog: support creating images on remote hosts

This patch parses the input filename in sd_create(), and enables us
specifying a target server to create sheepdog images.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Kevin Wolf <>

5ea929e3 01/31/2011 11:03 am Kevin Wolf

qcow2: Add bdrv_discard support

This adds a bdrv_discard function to qcow2 that frees the discarded clusters.
It does not yet pass the discard on to the underlying file system driver, but
the space can be reused by future writes to the image.

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

0d09c797 01/31/2011 11:03 am Stefan Hajnoczi

qed: Images with backing file do not require QED_F_NEED_CHECK

The consistency check on open is necessary in order to fix inconsistent
table offsets left as a result of a crash mid-operation. Images with a
backing file actually flush before updating table offsets and are...

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

raw-win32: Fix bdrv_flush return value

Signed-off-by: Kevin Wolf <>

c743849b 01/24/2011 05:41 pm Stefan Hajnoczi

qed: Refuse to create images on block devices

QED relies on the underlying filesystem to extend the file and maintain
its size. Check that images are not created on a block device.

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

3de0a294 01/24/2011 05:41 pm Kevin Wolf

qcow2: Batch flushes for COW

qcow2 calls bdrv_flush() after performing COW in order to ensure that the
L2 table change is never written before the copy is safe on disk. Now that the
L2 table is cached, we can wait with flushing until we write out the next L2...

View revisions

Also available in: Atom