All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-devel] [PATCH 0/2] block: blk_interposer v3
@ 2021-01-28 17:12 ` Sergei Shtepa
  0 siblings, 0 replies; 24+ messages in thread
From: Sergei Shtepa @ 2021-01-28 17:12 UTC (permalink / raw)
  To: hare, ming.lei, agk, snitzer, dm-devel, linux-block
  Cc: pavel.tide, sergei.shtepa

Hi all,

I`m ready to suggest the blk_interposer again.
blk_interposer allows to intercept bio requests, remap bio to
another devices or add new bios.

This version has support from device mapper.

For the dm-linear device creation command, the `noexcl` parameter
has been added, which allows to open block devices without
FMODE_EXCL mode. It allows to create dm-linear device on a block
device with an already mounted file system.
The new ioctl DM_DEV_REMAP allows to enable and disable bio
interception.

Thus, it is possible to add the dm-device to the block layer stack
without reconfiguring and rebooting.


Sergei Shtepa (2):
  block: blk_interposer
  [dm] blk_interposer for dm-linear

 block/bio.c                   |   2 +
 block/blk-core.c              |  29 +++
 block/blk-mq.c                |  13 ++
 block/genhd.c                 |  82 ++++++++
 drivers/md/dm-core.h          |  46 +++-
 drivers/md/dm-ioctl.c         |  39 ++++
 drivers/md/dm-linear.c        |  17 +-
 drivers/md/dm-table.c         |  12 +-
 drivers/md/dm.c               | 383 ++++++++++++++++++++++++++++++++--
 drivers/md/dm.h               |   2 +-
 include/linux/blk-mq.h        |   1 +
 include/linux/blk_types.h     |   6 +-
 include/linux/device-mapper.h |   7 +
 include/linux/genhd.h         |  19 ++
 include/uapi/linux/dm-ioctl.h |  15 +-
 15 files changed, 643 insertions(+), 30 deletions(-)

-- 
2.20.1

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2021-02-02  1:25 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-28 17:12 [dm-devel] [PATCH 0/2] block: blk_interposer v3 Sergei Shtepa
2021-01-28 17:12 ` Sergei Shtepa
2021-01-28 17:12 ` [dm-devel] [PATCH 1/2] block: blk_interposer Sergei Shtepa
2021-01-28 17:12   ` Sergei Shtepa
2021-01-29  1:21   ` [dm-devel] " Damien Le Moal
2021-01-29  1:21     ` Damien Le Moal
2021-01-29 15:58     ` Sergei Shtepa
2021-01-28 17:12 ` [dm-devel] [PATCH 2/2] [dm] blk_interposer for dm-linear Sergei Shtepa
2021-01-28 17:12   ` Sergei Shtepa
2021-01-29  1:46   ` [dm-devel] " Damien Le Moal
2021-01-29  1:46     ` Damien Le Moal
2021-01-29 16:08     ` Sergei Shtepa
2021-01-29 16:08       ` Sergei Shtepa
2021-01-29  0:18 ` [dm-devel] [PATCH 0/2] block: blk_interposer v3 Damien Le Moal
2021-01-29  0:18   ` Damien Le Moal
2021-01-29 15:39   ` Sergei Shtepa
2021-02-01 15:45 ` Bart Van Assche
2021-02-01 15:45   ` Bart Van Assche
2021-02-01 18:18   ` Sergei Shtepa
2021-02-01 18:18     ` Sergei Shtepa
2021-02-01 18:50     ` Mike Snitzer
2021-02-01 18:50       ` Mike Snitzer
2021-02-02  1:24       ` [dm-devel] " Sergei Shtepa
2021-02-02  1:24         ` Sergei Shtepa

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.