All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtepa <sergei.shtepa@veeam.com>
To: <axboe@kernel.dk>, <johannes.thumshirn@wdc.com>,
	<koct9i@gmail.com>, <ming.lei@redhat.com>, <snitzer@redhat.com>,
	<hare@suse.de>, <josef@toxicpanda.com>, <steve@sk2.org>,
	<linux-block@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <pavel.tide@veeam.com>, <sergei.shtepa@veeam.com>
Subject: [PATCH 0/3] block: blk_interposer - Block Layer Interposer
Date: Wed, 9 Dec 2020 16:01:48 +0300	[thread overview]
Message-ID: <1607518911-30692-1-git-send-email-sergei.shtepa@veeam.com> (raw)

Hi all.

I try to suggest the Block Layer Interposer (blk_interposer) again.
It`s allows to intercept bio requests, remap bio to another devices
or add new bios.

Initially, blk_interposer was designed to be compatible with
device mapper. Our (my and Hannes) previous attempt to offer
blk_interposer integrated with device mapper did not receive
any comments from the dm-devel team, and without their help
I will not be able to make a full implementation. I hope later
they will have time to support blk_interposer in device mapper.

And my blk-snap module requires an architecture change to
support blk_interposer.

This time I offer it along with a sample.
Despite the fact that blk_interposer is quite simple,
there are a few non-obvious points that I would like to clarify.

However, I suggest the blk_interposer now so that people
could discuss it and use it in their projects as soon as possible.

Sergei Shtepa (3):
  block: blk_interposer - Block Layer Interposer
  block: blk_interposer - sample
  block: blk_interposer - sample config

 block/blk-core.c                        |  32 +++
 include/linux/blk_types.h               |   6 +-
 include/linux/genhd.h                   |  12 +-
 samples/Kconfig                         |   7 +
 samples/Makefile                        |   1 +
 samples/blk_interposer/Makefile         |   2 +
 samples/blk_interposer/blk-interposer.c | 276 ++++++++++++++++++++++++
 7 files changed, 333 insertions(+), 3 deletions(-)
 create mode 100644 samples/blk_interposer/Makefile
 create mode 100644 samples/blk_interposer/blk-interposer.c

--
2.20.1


             reply	other threads:[~2020-12-09 13:10 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09 13:01 Sergei Shtepa [this message]
2020-12-09 13:01 ` [PATCH 1/3] block: blk_interposer - Block Layer Interposer Sergei Shtepa
2020-12-09 13:01 ` [PATCH 2/3] block: blk_interposer - sample Sergei Shtepa
2020-12-09 14:36   ` Mike Snitzer
2020-12-10 15:54     ` Sergei Shtepa
2020-12-10 15:58       ` Mike Snitzer
2020-12-09 13:01 ` [PATCH 3/3] block: blk_interposer - sample config Sergei Shtepa
2020-12-09 13:51 ` [PATCH 0/3] block: blk_interposer - Block Layer Interposer Mike Snitzer
2020-12-10 14:58   ` Sergei Shtepa
2020-12-10 16:32     ` Mike Snitzer
2020-12-11 16:30       ` Mike Snitzer
2020-12-11 16:30         ` [dm-devel] " Mike Snitzer
2020-12-11 16:33         ` Jens Axboe
2020-12-11 16:33           ` [dm-devel] " Jens Axboe
2020-12-11 16:56           ` Hannes Reinecke
2020-12-11 16:56             ` [dm-devel] " Hannes Reinecke
2020-12-11 17:04             ` Jens Axboe
2020-12-11 17:04               ` [dm-devel] " Jens Axboe
2020-12-11 18:03               ` Hannes Reinecke
2020-12-11 18:03                 ` [dm-devel] " Hannes Reinecke
2020-12-12 18:14                 ` Jens Axboe
2020-12-12 18:14                   ` [dm-devel] " Jens Axboe
2020-12-15  6:51             ` Bob Liu
2020-12-15  6:51               ` [dm-devel] " Bob Liu
2020-12-15  7:41               ` Hannes Reinecke
2020-12-15  7:41                 ` [dm-devel] " Hannes Reinecke
2020-12-15 15:57               ` Sergei Shtepa
2020-12-15 15:57                 ` [dm-devel] " Sergei Shtepa

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=1607518911-30692-1-git-send-email-sergei.shtepa@veeam.com \
    --to=sergei.shtepa@veeam.com \
    --cc=axboe@kernel.dk \
    --cc=hare@suse.de \
    --cc=johannes.thumshirn@wdc.com \
    --cc=josef@toxicpanda.com \
    --cc=koct9i@gmail.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    --cc=pavel.tide@veeam.com \
    --cc=snitzer@redhat.com \
    --cc=steve@sk2.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.