From: Manos Pitsidianakis <el13635@mail.ntua.gr>
To: qemu-devel <qemu-devel@nongnu.org>
Cc: qemu-block <qemu-block@nongnu.org>,
Eric Blake <eblake@redhat.com>, Alberto Garcia <berto@igalia.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Max Reitz <mreitz@redhat.com>, Kevin Wolf <kwolf@redhat.com>
Subject: [Qemu-devel] [PATCH v5 0/4] block: Block driver callbacks fixes
Date: Thu, 13 Jul 2017 13:01:13 +0300 [thread overview]
Message-ID: <20170713100117.11961-1-el13635@mail.ntua.gr> (raw)
This series makes implementing some of the bdrv_* callbacks easier for block
filters 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
da4bd74d2450ab72a7c26bbabb10c6a287dd043e
v5:
rebase against ced1484322 of https://github.com/XanClic/qemu.git block to fix
apply conflicts
add suggested commit message in block: remove unused bdrv_media_changed
add is_filter implication in commit message of block: remove bdrv_truncate
callback in blkdebug
v4:
forward only for block filters
new patch: remove bdrv_media_changed
dropped commit `block: Use defaults of bdrv_* callbacks in raw`, since raw is
not a filter driver and is incompatible with the changes.
v3:
minor changes by Eric Blake's suggestion
new patch: remove bdrv_truncate method from blkdebug
v2:
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 in block filters
block: remove unused bdrv_media_changed
block: remove bdrv_truncate callback in blkdebug
block: add default implementations for bdrv_co_get_block_status()
block.c | 35 +++++++++++++++++++----------------
block/blkdebug.c | 20 ++------------------
block/commit.c | 12 +-----------
block/io.c | 26 ++++++++++++++++++++++++++
block/mirror.c | 12 +-----------
block/raw-format.c | 6 ------
include/block/block.h | 1 -
include/block/block_int.h | 25 +++++++++++++++++++++++--
8 files changed, 72 insertions(+), 65 deletions(-)
--
2.11.0
next reply other threads:[~2017-07-13 10:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-13 10:01 Manos Pitsidianakis [this message]
2017-07-13 10:01 ` [Qemu-devel] [PATCH v5 1/4] block: pass bdrv_* methods to bs->file by default in block filters Manos Pitsidianakis
2017-07-13 11:23 ` Eric Blake
2017-07-13 11:39 ` Manos Pitsidianakis
2017-07-13 10:01 ` [Qemu-devel] [PATCH v5 2/4] block: remove unused bdrv_media_changed Manos Pitsidianakis
2017-07-13 10:01 ` [Qemu-devel] [PATCH v5 3/4] block: remove bdrv_truncate callback in blkdebug Manos Pitsidianakis
2017-07-13 10:01 ` [Qemu-devel] [PATCH v5 4/4] block: add default implementations for bdrv_co_get_block_status() Manos Pitsidianakis
2017-07-13 11:18 ` [Qemu-devel] [PATCH v5 0/4] block: Block driver callbacks fixes Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170713100117.11961-1-el13635@mail.ntua.gr \
--to=el13635@mail.ntua.gr \
--cc=berto@igalia.com \
--cc=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).