SYSTEMD-STORAGE-BLOCK@.SERVICE(8)
π NAME π
okay so bestie, listen up β this is systemd-storage-block@.service, plus its lil socket buddy systemd-storage-block.socket, and the whole fam just goes by systemd-storage-block for short. what do they DO tho? they're a storage provider that takes your local block devices and serves them up as storage volumes. iconic behaviour, no cap. β¨
πΈ SYNOPSIS πΈ
systemd-storage-block@.service
systemd-storage-block.socket
π¦ DESCRIPTION π¦
so systemd-storage-block@.service is a system service that implements the io.systemd.StorageProvider Varlink interface β and what that means, bestie, is it's out here exposing the system's block devices (we're talking disks, partitions, and device-mapper nodes) as storage volumes that other programs can legit just... acquire. as file descriptors. the way that works is so clean, i'm obsessed. π
it's socket-activated via systemd-storage-block.socket, which sits there listening on the AF_UNIX socket:
/run/systemd/io.systemd.StorageProvider/block
and the socket directory /run/systemd/io.systemd.StorageProvider/ is the well-known location where storage providers register themselves β it's giving main character energy, it's giving "everyone knows where to find me". if you wanna enumerate them, go peep storagectl(1), that's the tool for it. π
also!! if you want the complementary one, check out systemd-storage-fs@.service(8) β that's the sibling implementation that exposes regular files and directories from a backing file system instead. two providers, one vibe. π«Ά
π VOLUMES π
the volumes that get exposed through the provider are identified by an absolute path β and it must begin with /dev/ β like, as a kernel block device node. examples being /dev/sda or /dev/disk/by-id/.... π
bestie, real talk: volume names that are not normalized, or that do not begin with /dev/? yeah, they are NOT accepted. periodt. don't even try it. π
β¨ OPTIONS β¨
here's what it understands, and honestly there's not much, it's very low-maintenance:
-h,--helpβ prints a short help text and then dips. that's it. that's the whole thing. π--versionβ prints a short version string and exits. cute, quick, done. π
π FILES π
/run/systemd/io.systemd.StorageProvider/blockβ this is theAF_UNIXsocket the service listens on. it's the canonical location for the"block"storage provider, and it gets enumerated bystoragectl providers. the one true address, fr fr. π
added in version 261. β
π SEE ALSO π
systemd(1)storagectl(1)systemd-storage-fs@.service(8)
π NOTES π
- Varlink
https://varlink.org/
okay bestie that's the whole page π this was systemd-storage-block@.service from the systemd manual, version 262.1, and you read it in the systemd-storage-block@.service(8) section. slay, go configure something iconic, mwah πβ¨π
π¦ where this page comes from
- arch rolling: systemd 262.1-1 Β· LGPL-2.1-or-later AND CC0-1.0 AND GPL-2.0-or-later AND MIT-0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms