Skip to content

dm unstriped: add new target

Heinz Mauelshagen dm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest2 patches 0 repliesNew

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dm unstriped: the targetdrivers/md/Kconfig drivers/md/Makefile drivers/md/dm-unstripe.c+245 -00 replies
2/2dm unstriped: add documentation for targetDocumentation/device-mapper/dm-unstripe.txt+130 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHeinz MauelshagenKeith Busch
SeriesT-b A-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] dm unstriped: add new target

This is a quick rework of the new "unstripe" target (undoes a striped/raid0 mapping) v3 patch series authored by Scott Bauer addressing some points discussed here and more.

Addressed:
- rename target to "unstriped"
- enhance constructor header
- add more consistency checks to constructor imposing divisibility of device and drive length by chunk size; device length has to be divisible by total number of drives
- use destructor in constructor error pathes
- move a few local variables to 'struct unstripe'
- add missing unstripe_status() function using
new variables in ^ struct to address requirement for dm targets
- tweaked config variable name Kconfig text

Not addressed:
- documentation (kept as is in this series for completeness)

Example of 'dmsetup table' output:

# dmsetup table nvm-s s1 s2
nvm-s: 0 262144 raid raid0 1 8 2 - 254:2 - 254:3
s1: 0 131072 unstriped 254:4 0 2 8
s2: 0 131072 unstriped 254:4 1 2 8

Scott,
please check, test and tell, if the additonal constraints on length divisibility are too restrictive and how to go about the 2 FIXMEs.

Heinz Mauelshagen (2):
dm unstriped: new "unstriped" raid0/striped device dm unstriped: add documentation for unstriped target

 Documentation/device-mapper/dm-unstripe.txt | 130 ++++++++++++++++
 drivers/md/Kconfig                          |  11 ++
 drivers/md/Makefile                         |   1 +
 drivers/md/dm-unstripe.c                    | 233 ++++++++++++++++++++++++++++
 4 files changed, 375 insertions(+)
 create mode 100644 Documentation/device-mapper/dm-unstripe.txt
 create mode 100644 drivers/md/dm-unstripe.c
Signature · 1 line
2.14.3