]> git.ipfire.org Git - thirdparty/systemd.git/commit
storage: add systemd-storage-block@.service provider
authorLennart Poettering <lennart@amutable.com>
Thu, 23 Apr 2026 07:00:06 +0000 (09:00 +0200)
committerLennart Poettering <lennart@amutable.com>
Wed, 29 Apr 2026 10:25:47 +0000 (12:25 +0200)
commit4fd0df2a4b0aeb7aa317666f7e25626b0129c87a
treef50351d368fea86f95ff4a1fc25c3469b717feae
parent087fa20166f0becc7b41056d48e1efb76e4c20f3
storage: add systemd-storage-block@.service provider

First implementation of io.systemd.StorageProvider, exposing all block
devices known to udev (disks, partitions, dm nodes, …) as volumes of
type "blk". Names are picked from stable /dev/mapper and /dev/disk/by-*
symlinks; content-derived identifiers (by-uuid, by-label, …) are
intentionally avoided for security. Volume creation is not supported by
this backend.

Socket-activated via /run/systemd/io.systemd.StorageProvider/block.
Also adds shared storage-util.[ch] (VolumeType / CreateMode helpers)
that subsequent providers reuse.
man/rules/meson.build
man/systemd-storage-block@.service.xml [new file with mode: 0644]
meson.build
src/storage/io.systemd.storage.policy [new file with mode: 0644]
src/storage/meson.build [new file with mode: 0644]
src/storage/storage-block.c [new file with mode: 0644]
src/storage/storage-util.c [new file with mode: 0644]
src/storage/storage-util.h [new file with mode: 0644]
units/meson.build
units/systemd-storage-block.socket [new file with mode: 0644]
units/systemd-storage-block@.service.in [new file with mode: 0644]