Statistics
| Branch: | Revision:

root / include / block @ b94a2610

Name Size
aio.h 9 kB
block.h 19.5 kB
block_int.h 17 kB
blockjob.h 8.2 kB
coroutine.h 5.9 kB
coroutine_int.h 1.9 kB
nbd.h 3.3 kB
qapi.h 2.1 kB
scsi.h 10.7 kB
snapshot.h 2.9 kB
thread-pool.h 1.1 kB

Latest revisions

# Date Author Comment
b94a2610 10/29/2013 02:10 pm Kevin Wolf

block: Avoid unecessary drv->bdrv_getlength() calls

The block layer generally keeps the size of an image cached in
bs->total_sectors so that it doesn't have to perform expensive
operations to get the size whenever it needs it.

This doesn't work however when using a backend that can change its size...

92bc50a5 10/11/2013 05:49 pm Peter Lieven

block/get_block_status: avoid redundant callouts on raw devices

if a raw device like an iscsi target or host device is used
the current implementation makes a second call out to get
the block status of bs->file.

Signed-off-by: Peter Lieven <>
Reviewed-by: Eric Blake <>...

f6186f49 10/11/2013 05:49 pm Benoît Canet

block: Add BlockDriver.bdrv_check_ext_snapshot.

This field is used by blkverify to disable external snapshots creation.
It will also be used by block filters like quorum to disable external
snapshot creation.

Signed-off-by: Benoit Canet <>...

3fc4b10a 10/11/2013 11:52 am Fam Zheng

blockjob: rename BlockJobType to BlockJobDriver

We will use BlockJobType as the enum type name of block jobs in QAPI,
rename current BlockJobType to BlockJobDriver, which will eventually
become a set of operations, similar to block drivers.

Signed-off-by: Fam Zheng <>...

79e14bf7 10/11/2013 11:52 am Fam Zheng

qapi: make use of new BlockJobType

Switch the string to enum type BlockJobType in BlockJobDriver.

Signed-off-by: Fam Zheng <>
Reviewed-by: Eric Blake <>
Signed-off-by: Kevin Wolf <>

eae041fe 10/11/2013 11:52 am Max Reitz

block: Add bdrv_get_specific_info

Add a function for retrieving an ImageInfoSpecific object from a block
driver.

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

a8d8ecb7 10/11/2013 11:52 am Max Reitz

block/qapi: Human-readable ImageInfoSpecific dump

Add a function for generically dumping the ImageInfoSpecific information
in a human-readable format to block/qapi.c.

Use this function in bdrv_image_info_dump and qemu-io-cmds.c:info_f to
allow qemu-img info resp. qemu-io -c info to print that format specific...

030be321 09/25/2013 05:21 pm Benoît Canet

block: introduce BlockDriver.bdrv_needs_filename to enable some drivers.

Some drivers will have driver specifics options but no filename.
This new bool allow the block layer to treat them correctly.

The .bdrv_needs_filename is set in drivers not having .bdrv_parse_filename and...

34b5d2c6 09/12/2013 11:12 am Max Reitz

block: Error parameter for open functions

Add an Error ** parameter to bdrv_open, bdrv_file_open and associated
functions to allow more specific error messages.

Signed-off-by: Max Reitz <>

cc84d90f 09/12/2013 11:12 am Max Reitz

block: Error parameter for create functions

Add an Error ** parameter to bdrv_create and its associated functions to
allow more specific error messages.

Signed-off-by: Max Reitz <>

View revisions

Also available in: Atom