SYSTEMD-STORAGE-BLOCK(8)

πŸ“¦
version 262.1 Β· 3 versions
, in arch rolling

πŸ’– 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 the AF_UNIX socket the service listens on. it's the canonical location for the "block" storage provider, and it gets enumerated by storagectl providers. the one true address, fr fr. πŸ’œ
added in version 261. ⭐

🌈 SEE ALSO 🌈


πŸ“ NOTES πŸ“

  1. 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