From: Tobias Waldekranz <tobias@waldekranz.com>
To: barebox@lists.infradead.org
Subject: [PATCH v2 0/7] dm: Initial work on a device mapper
Date: Tue, 9 Sep 2025 15:18:33 +0200 [thread overview]
Message-ID: <20250909131843.2260573-1-tobias@waldekranz.com> (raw)
Start work on adding a device mapper that is compatible with the
corresponding subsystem in Linux.
v1:
https://lore.kernel.org/barebox/20250828150637.2222474-1-tobias@waldekranz.com/
v1 -> v2:
- Fix review comments from Ahmad (see individual commits)
- Add (2/7): Add rasprintf(), to make scenarios where strings are
built up in multiple steps more ergonomic to work with.
- Add (5/7): As a result of making sure that the DM selftests execute
in the CI suite, the qemu-malta build ran into a table size
overflow.
Tobias Waldekranz (7):
string: add strtok/strtokv
vsprintf: Add rasprintf(): the reallocing string printf family
dm: Add initial device mapper infrastructure
dm: linear: Add linear target
MIPS: qemu-malta_defconfig: Use largest possible relocation table
test: self: dm: Add test of linear target
commands: dmsetup: Basic command set for dm device management
arch/mips/configs/qemu-malta_defconfig | 1 +
commands/Kconfig | 14 +
commands/Makefile | 1 +
commands/dmsetup.c | 144 +++++++++
drivers/block/Kconfig | 2 +
drivers/block/Makefile | 1 +
drivers/block/dm/Kconfig | 13 +
drivers/block/dm/Makefile | 3 +
drivers/block/dm/dm-core.c | 395 +++++++++++++++++++++++++
drivers/block/dm/dm-linear.c | 129 ++++++++
drivers/block/dm/dm-target.h | 39 +++
include/device-mapper.h | 16 +
include/stdio.h | 10 +
include/string.h | 1 +
include/xfuncs.h | 4 +
lib/string.c | 30 ++
lib/vsprintf.c | 35 +++
lib/xfuncs.c | 24 ++
test/self/Kconfig | 10 +
test/self/Makefile | 1 +
test/self/dm.c | 159 ++++++++++
21 files changed, 1032 insertions(+)
create mode 100644 commands/dmsetup.c
create mode 100644 drivers/block/dm/Kconfig
create mode 100644 drivers/block/dm/Makefile
create mode 100644 drivers/block/dm/dm-core.c
create mode 100644 drivers/block/dm/dm-linear.c
create mode 100644 drivers/block/dm/dm-target.h
create mode 100644 include/device-mapper.h
create mode 100644 test/self/dm.c
--
2.43.0
next reply other threads:[~2025-09-09 16:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-09 13:18 Tobias Waldekranz [this message]
2025-09-09 13:18 ` [PATCH v2 1/7] string: add strtok/strtokv Tobias Waldekranz
2025-09-09 13:18 ` [PATCH v2 2/7] vsprintf: Add rasprintf(): the reallocing string printf family Tobias Waldekranz
2025-09-09 13:18 ` [PATCH v2 3/7] dm: Add initial device mapper infrastructure Tobias Waldekranz
2025-09-09 13:18 ` [PATCH v2 4/7] dm: linear: Add linear target Tobias Waldekranz
2025-09-09 13:18 ` [PATCH v2 5/7] MIPS: qemu-malta_defconfig: Use largest possible relocation table Tobias Waldekranz
2025-09-09 13:18 ` [PATCH v2 6/7] test: self: dm: Add test of linear target Tobias Waldekranz
2025-09-09 13:18 ` [PATCH v2 7/7] commands: dmsetup: Basic command set for dm device management Tobias Waldekranz
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=20250909131843.2260573-1-tobias@waldekranz.com \
--to=tobias@waldekranz.com \
--cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox