Statistics
| Branch: | Revision:

root / block @ d6e9098e

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.2 kB
qcow2-refcount.c 36.2 kB
qcow2-snapshot.c 12.4 kB
qcow2.c 39.7 kB
qcow2.h 6.7 kB
raw-posix-aio.h 1.3 kB
raw-posix.c 35.9 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
8b9b0cc2 04/23/2010 05:08 pm Kevin Wolf

blkdebug: Add events and rules

Block drivers can trigger a blkdebug event whenever they reach a place where it
could be useful to inject an error for testing/debugging purposes.

Rules are read from a blkdebug config file and describe which action is taken...

8252278a 04/23/2010 05:08 pm Kevin Wolf

qcow2: Trigger blkdebug events

This adds blkdebug events to qcow2 to allow injecting I/O errors in specific
places.

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

6a143727 04/23/2010 05:08 pm Kevin Wolf

blkdebug: Basic request passthrough

This isn't doing anything interesting. It creates the blkdebug block driver as
a protocol which just passes everything through to raw.

Signed-off-by: Kevin Wolf <>

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

blkdebug: Inject errors

Add a mechanism to inject errors instead of passing requests on. With no
further patches applied, you can use it by setting inject_errno in gdb.

Signed-off-by: Kevin Wolf <>

6e0a47aa 04/10/2010 03:22 am Christoph Hellwig

raw-posix: don't assign bs->read_only

bdrv_open already takes care of this for us.

Signed-off-by: Christoph Hellwig <>
Acked-by: Kevin Wolf <>
Signed-off-by: Aurelien Jarno <>

c644db3d 04/10/2010 02:25 am Kevin Wolf

qcow2: Remove request from in-flight list after error

If we complete a request with a failure we need to remove it from the list of
requests that are in flight. If we don't do it, the next time the same AIOCB is
used for a cluster allocation it will create a loop in the list and qemu will...

171e3d6b 04/10/2010 02:23 am Kevin Wolf

qcow2: Don't ignore immediate read/write failures

Returning -EIO is far from optimal, but at least it's an error code.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Aurelien Jarno <>

57e69b7d 03/27/2010 01:00 pm Kevin Wolf

raw-posix: Better error return values for hdev_create

Now that we output an error message according to the returned error code in
qemu-img, let's return the real error codes. "Input/output error" for
everything isn't helpful.

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

View revisions

Also available in: Atom