[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH v3 0/4] block: Block driver callbacks fixes

From: Manos Pitsidianakis
Subject: [Qemu-block] [PATCH v3 0/4] block: Block driver callbacks fixes
Date: Tue, 4 Jul 2017 11:40:55 +0300

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 is based against Kevin Wolf's block branch, commit

  minor changes by Eric Blake's suggestion
  new patch: remove bdrv_truncate method from blkdebug

  do not pass to bs->file if bs->drv is NULL
  move bs->file check outside of bdrv_inc_in_flight() area in bdrv_co_ioctl()
  new patch: remove duplicate code from block/raw-format.c

Manos Pitsidianakis (4):
  block: Pass bdrv_* methods to bs->file by default
  block: Use defaults of bdrv_* callbacks in raw
  block: Remove bdrv_truncate callback in blkdebug
  block: Add default implementations for bdrv_co_get_block_status()

 block.c                   | 27 +++++++++++++++++++++++++--
 block/blkdebug.c          | 18 +-----------------
 block/commit.c            | 12 +-----------
 block/io.c                | 31 +++++++++++++++++++++++++++++++
 block/mirror.c            | 12 +-----------
 block/raw-format.c        | 30 ------------------------------
 include/block/block_int.h | 18 ++++++++++++++++++
 7 files changed, 77 insertions(+), 71 deletions(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]