Statistics
| Branch: | Revision:

root / include / block @ 0a6a7cca

Name Size
aio.h 9 kB
block.h 22.5 kB
block_int.h 19.6 kB
blockjob.h 8.2 kB
coroutine.h 6 kB
coroutine_int.h 1.9 kB
nbd.h 3 kB
qapi.h 2.2 kB
scsi.h 10.7 kB
snapshot.h 3.3 kB
thread-pool.h 1.1 kB

Latest revisions

# Date Author Comment
537b41f5 02/21/2014 10:02 pm Paolo Bonzini

nbd: move socket wrappers to qemu-nbd

qemu-nbd is one of the few valid users of qerror_report_err. Move
the error-reporting socket wrappers there.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Fam Zheng <>
Signed-off-by: Kevin Wolf <>

ddf5636d 02/21/2014 10:02 pm Max Reitz

block: Add reference parameter to bdrv_open()

Allow bdrv_open() to handle references to existing block devices just as
bdrv_file_open() is already capable of.

Signed-off-by: Max Reitz <>
Signed-off-by: Kevin Wolf <>

2e40134b 02/21/2014 10:02 pm Max Reitz

block: Make bdrv_file_open() static

Add the bdrv_open() option BDRV_O_PROTOCOL which results in passing the
call to bdrv_file_open(). Additionally, make bdrv_file_open() static and
therefore bdrv_open() the only way to call it.

Consequently, all existing calls to bdrv_file_open() have to be adjusted...

f7d9fd8c 02/21/2014 10:02 pm Max Reitz

block: Remove bdrv_open_image()'s force_raw option

This option is now unnecessary since specifying BDRV_O_PROTOCOL as flag
will do exactly the same.

Signed-off-by: Max Reitz <>
Reviewed-by: Benoit Canet <>
Reviewed-by: Kevin Wolf <>...

77e8b9ca 02/21/2014 10:02 pm Paolo Bonzini

nbd: correctly propagate errors

Before:
$ ./qemu-io-old
qemu-io-old> open -r -o file.driver=nbd
one of path and host must be specified.
qemu-io-old: can't open device (null): Could not open image: Invalid argument
$ ./qemu-io-old
qemu-io-old> open -r -o file.driver=nbd,file.host=foo,file.path=bar...

c06b7278 02/21/2014 10:02 pm Paolo Bonzini

nbd: inline tcp_socket_incoming_spec into sole caller

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Fam Zheng <>
Signed-off-by: Kevin Wolf <>

f67503e5 02/21/2014 10:02 pm Max Reitz

block: Change BDS parameter of bdrv_open() to **

Make bdrv_open() take a pointer to a BDS pointer, similarly to
bdrv_file_open(). If a pointer to a NULL pointer is given, bdrv_open()
will create a new BDS with an empty name; if the BDS pointer is not
NULL, that existing BDS will be reused (in the same way as bdrv_open()...

9e1cb96d 01/24/2014 06:40 pm Kevin Wolf

qemu-iotests: Test pwritev RMW logic

Signed-off-by: Kevin Wolf <>
Reviewed-by: Max Reitz <>

8407d5d7 01/24/2014 06:40 pm Kevin Wolf

block: Make bdrv_pwrite() a bdrv_prwv_co() wrapper

Instead of implementing the alignment adjustment here, use the now
existing functionality of bdrv_co_do_pwritev().

Signed-off-by: Kevin Wolf <>
Reviewed-by: Max Reitz <>

6460440f 01/24/2014 06:40 pm Kevin Wolf

block: Allow wait_serialising_requests() at any point

We can only have a single wait_serialising_requests() call per request
because otherwise we can run into deadlocks where requests are waiting
for each other. The same is true when wait_serialising_requests() is not...

View revisions

Also available in: Atom