[Qemu-devel] [PATCH 0/2] block: block driver callbacks fixes

Manos Pitsidianakis posted 2 patches 6 years, 9 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
block.c                   | 45 ++++++++++++++++++++++++++++++++++-----------
block/blkdebug.c          | 12 +-----------
block/commit.c            | 12 +-----------
block/io.c                | 28 ++++++++++++++++++++++++++++
block/mirror.c            | 12 +-----------
include/block/block_int.h | 16 ++++++++++++++++
6 files changed, 81 insertions(+), 44 deletions(-)
[Qemu-devel] [PATCH 0/2] block: block driver callbacks fixes
Posted by Manos Pitsidianakis 6 years, 9 months ago
This series makes implementing some of the bdrv_* callbacks easier for block
drivers by passing requests to bs->file if bs->drv doesn't implement it instead
of failing, and adding default bdrv_co_get_block_status() implementations.

This based against Kevin Wolf's block branch, commit
0dd2ec6bc46bd93ea0b9df602962883417f31400

Manos Pitsidianakis (2):
  block: pass bdrv_* methods to bs->file by default
  block: add default implementations for bdrv_co_get_block_status()

 block.c                   | 45 ++++++++++++++++++++++++++++++++++-----------
 block/blkdebug.c          | 12 +-----------
 block/commit.c            | 12 +-----------
 block/io.c                | 28 ++++++++++++++++++++++++++++
 block/mirror.c            | 12 +-----------
 include/block/block_int.h | 16 ++++++++++++++++
 6 files changed, 81 insertions(+), 44 deletions(-)

-- 
2.11.0