Statistics
| Branch: | Revision:

root / block @ 0d84be5b

Name Size
blkdebug.c 12.8 kB
bochs.c 7.3 kB
cloop.c 5 kB
cow.c 8.9 kB
curl.c 14.8 kB
dmg.c 8.2 kB
nbd.c 4.7 kB
parallels.c 4.8 kB
qcow.c 30 kB
qcow2-cluster.c 26.3 kB
qcow2-refcount.c 36.2 kB
qcow2-snapshot.c 12.4 kB
qcow2.c 39.5 kB
qcow2.h 6.7 kB
raw-posix-aio.h 1.3 kB
raw-posix.c 36.2 kB
raw-win32.c 11 kB
vdi.c 28.9 kB
vmdk.c 27.4 kB
vpc.c 17.2 kB
vvfat.c 80.3 kB

Latest revisions

# Date Author Comment
88bf7950 04/25/2010 06:27 pm Blue Swirl

Fix dead initialization, spotted by clang analyzer

Fix clang warnings:
/src/qemu/block/vvfat.c:1102:9: warning: Value stored to 'index3' during its initialization is never read
int index3=index1+1;
/src/qemu/cmd.c:290:15: warning: Value stored to 'p' during its initialization is never read...

20d97356 04/23/2010 11:19 pm Blue Swirl

Fix OpenBSD build

GCC 3.3.5 generates warnings for static forward declarations of data, so
rearrange code to use static forward declarations of functions instead.

Signed-off-by: Blue Swirl <>

d4c146f0 04/23/2010 05:21 pm Stefan Hajnoczi

qcow2: Use QLIST_FOREACH_SAFE macro

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

4768fa90 04/23/2010 05:08 pm Kevin Wolf

qcow2: Fix creation of large images

qcow_create2 assumes that the new image will only need one cluster for its
refcount table initially. Obviously that's not true any more when the image is
big enough (exact value depends on the cluster size).

This patch calculates the refcount table size dynamically....

d6e9098e 04/23/2010 05:08 pm Kevin Wolf

Replace calls of old bdrv_open

What is known today as bdrv_open2 becomes the new bdrv_open. All remaining
callers of the old function are converted to the new one. In some places they
even know the right format, so they should have used bdrv_open2 from the...

50779cc2 04/23/2010 05:08 pm Christoph Hellwig

block: split raw_getlength

Split up the raw_getlength into separate generic, solaris and BSD
versions to reduce the ifdef maze a bit. The BSD variant still
is a complete maze, but to clean it up properly we'd need some
people using the BSD variants to figure out what code is used...

79a31189 04/23/2010 05:08 pm Kevin Wolf

qcow2: Return 0/-errno in write_l2_entries

Change write_l2_entries to return the real error code instead of -1.

Signed-off-by: Kevin Wolf <>

c835d00f 04/23/2010 05:08 pm Kevin Wolf

qcow2: Fix error return code in qcow2_alloc_cluster_link_l2

Fix qcow2_alloc_cluster_link_l2 to return the real error code like it does in
all other error cases.

Signed-off-by: Kevin Wolf <>

f7defcb6 04/23/2010 05:08 pm Kevin Wolf

qcow2: Return 0/-errno in write_l1_entry

Change write_l1_entry to return the real error code instead of -1.

Signed-off-by: Kevin Wolf <>

c46e1167 04/23/2010 05:08 pm Kevin Wolf

qcow2: Return 0/-errno in l2_allocate

Returning NULL on error doesn't allow distinguishing between different errors.
Change the interface to return an integer for -errno.

Signed-off-by: Kevin Wolf <>

View revisions

Also available in: Atom