Statistics
| Branch: | Revision:

root / block / blkverify.c @ 80fa3341

History | View | Annotate | Download (10.5 kB)

# Date Author Comment
a3133586 11/04/2010 02:54 pm Blue Swirl

block: avoid a warning on 64 bit hosts with long as int64_t

When building on a 64 bit host which uses 'long' for int64_t,
GCC emits a warning:
CC block/blkverify.o
/src/qemu/block/blkverify.c: In function `blkverify_verify_readv':
/src/qemu/block/blkverify.c:304: warning: long long int format, long...

205ef796 11/04/2010 01:52 pm Kevin Wolf

block: Allow bdrv_flush to return errors

This changes bdrv_flush to return 0 on success and -errno in case of failure.
It's a requirement for implementing proper error handle in users of bdrv_flush.

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

a77cffe7 10/22/2010 03:49 pm Stefan Weil

block: Use GCC_FMT_ATTR and fix a format error

Adding the gcc format attribute detects a format bug
which is fixed here.

v2:
Don't use type cast. BDRV_SECTOR_SIZE is unsigned long long,
so %lld should be the correct format specifier.

Cc: Blue Swirl <>...

687db4ed 09/22/2010 10:46 pm Anthony Liguori

block-verify: fix 32-bit build

Reported-by: Peter Lemenkov <>
Signed-off-by: Anthony Liguori <>

d9d33417 09/21/2010 06:00 pm Stefan Hajnoczi

blkverify: Add block driver for verifying I/O

The blkverify block driver makes investigating image format data
corruption much easier. A raw image initialized with the same contents
as the test image (e.g. qcow2 file) must be provided. The raw image
mirrors read/write operations and is used to verify that data read from...