Statistics
| Branch: | Revision:

root / block @ 7a6f3913

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.2 kB
nbd.c 4.7 kB
parallels.c 4.8 kB
qcow.c 29.8 kB
qcow2-cluster.c 26.4 kB
qcow2-refcount.c 36.4 kB
qcow2-snapshot.c 12.5 kB
qcow2.c 40.1 kB
qcow2.h 6.8 kB
raw-posix-aio.h 1.3 kB
raw-posix.c 35.4 kB
raw-win32.c 11 kB
raw.c 3.5 kB
vdi.c 28.7 kB
vmdk.c 25.4 kB
vpc.c 17 kB
vvfat.c 80.3 kB

Latest revisions

# Date Author Comment
7a6f3913 05/17/2010 11:20 am Christoph Hellwig

bochs: use qemu block API

Use bdrv_pwrite to access the backing device instead of pread, and
convert the driver to implementing the bdrv_open method which gives
it an already opened BlockDriverState for the underlying device.

Signed-off-by: Christoph Hellwig <>...

c94304be 05/17/2010 11:20 am Christoph Hellwig

cloop: use pread

Use pread instead of lseek + read in preparation of using the qemu
block API.

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Kevin Wolf <>

20be49e4 05/17/2010 11:20 am Christoph Hellwig

cloop: use qemu block API

Use bdrv_pwrite to access the backing device instead of pread, and
convert the driver to implementing the bdrv_open method which gives
it an already opened BlockDriverState for the underlying device.

Signed-off-by: Christoph Hellwig <>...

efbca10f 05/17/2010 11:20 am Christoph Hellwig

bochs: use pread

Use pread instead of lseek + read in preparation of using the qemu
block API.

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Kevin Wolf <>

92b30744 05/07/2010 08:11 pm Kevin Wolf

qcow2: Remove static forward declaration

OpenBSDs gcc is said to generate warnings for this declaration, so don't
reference bdrv_qcow2 directly, but look it up using bdrv_find_format.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Blue Swirl <>

de5f3f40 05/07/2010 08:11 pm Kevin Wolf

Revert "Fix OpenBSD build"

This reverts commit 20d97356c9df6d68fbd37d6334fdb7063f24eab6.
The BlockDriver definition should stay at the end of source files.

Conflicts:

block/qcow2.c

Signed-off-by: Kevin Wolf <>
Signed-off-by: Blue Swirl <>

003fad6e 05/03/2010 11:07 am Kevin Wolf

qcow2: Remove abort on free_clusters failure

While it's true that during regular operation free_clusters failure would be a
bug, an I/O error can always happen. There's no need to kill the VM, the worst
thing that can happen (and it will) is that we leak some clusters....

419b19d9 05/03/2010 11:07 am Stefan Hajnoczi

qcow2: Implement bdrv_truncate() for growing images

This patch adds the ability to grow qcow2 images in-place using
bdrv_truncate(). This enables qemu-img resize command support for
qcow2.

Snapshots are not supported and bdrv_truncate() will return -ENOTSUP....

508e0893 05/03/2010 11:07 am Stefan Hajnoczi

qcow2: Avoid shadowing variable in alloc_clusters_noref()

The i loop iterator is shadowed by the next free cluster index. Both
using the variable name 'i' makes the code harder to read.

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

4899d10d 05/03/2010 11:07 am Stefan Hajnoczi

raw-posix: Use pread/pwrite instead of lseek+read/write

This patch combines the lseek+read/write calls to use pread/pwrite
instead. This will result in fewer system calls and is already used by
AIO.

Thanks to Jan Kiszka <> for identifying excessive...

View revisions

Also available in: Atom