| 1 |
<?xml version='1.0'?> <!--*-nxml-*--> |
| 2 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
| 3 |
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
| 4 |
<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
| 5 |
|
| 6 |
<refentry id="systemd-storage-block_.service" |
| 7 |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 8 |
|
| 9 |
<refentryinfo> |
| 10 |
<title>[email protected]</title> |
| 11 |
<productname>systemd</productname> |
| 12 |
</refentryinfo> |
| 13 |
|
| 14 |
<refmeta> |
| 15 |
<refentrytitle>[email protected]</refentrytitle> |
| 16 |
<manvolnum>8</manvolnum> |
| 17 |
</refmeta> |
| 18 |
|
| 19 |
<refnamediv> |
| 20 |
<refname>[email protected]</refname> |
| 21 |
<refname>systemd-storage-block.socket</refname> |
| 22 |
<refname>systemd-storage-block</refname> |
| 23 |
<refpurpose>Storage provider exposing local block devices as storage volumes</refpurpose> |
| 24 |
</refnamediv> |
| 25 |
|
| 26 |
<refsynopsisdiv> |
| 27 |
<para><filename>[email protected]</filename></para> |
| 28 |
<para><filename>systemd-storage-block.socket</filename></para> |
| 29 |
</refsynopsisdiv> |
| 30 |
|
| 31 |
<refsect1> |
| 32 |
<title>Description</title> |
| 33 |
|
| 34 |
<para><filename>[email protected]</filename> is a system service that implements the |
| 35 |
<constant>io.systemd.StorageProvider</constant> <ulink url="https://varlink.org/">Varlink</ulink> |
| 36 |
interface, exposing the system's block devices (such as disks, partitions, and device-mapper |
| 37 |
nodes) as storage volumes that may be acquired by other programs as file descriptors.</para> |
| 38 |
|
| 39 |
<para>The service is socket-activated via <filename>systemd-storage-block.socket</filename>, which |
| 40 |
listens on the AF_UNIX socket <filename>/run/systemd/io.systemd.StorageProvider/block</filename>. The |
| 41 |
socket directory <filename>/run/systemd/io.systemd.StorageProvider/</filename> is the well-known location |
| 42 |
where storage providers register, see |
| 43 |
<citerefentry><refentrytitle>storagectl</refentrytitle><manvolnum>1</manvolnum></citerefentry> for an |
| 44 |
enumeration tool.</para> |
| 45 |
|
| 46 |
<para>See also |
| 47 |
<citerefentry><refentrytitle>[email protected]</refentrytitle><manvolnum>8</manvolnum></citerefentry> |
| 48 |
for a complementary implementation that exposes regular files and directories from a backing file |
| 49 |
system.</para> |
| 50 |
</refsect1> |
| 51 |
|
| 52 |
<refsect1> |
| 53 |
<title>Volumes</title> |
| 54 |
|
| 55 |
<para>The volumes exposed via the provider are identified by an absolute path (which must begin with |
| 56 |
<filename>/dev/</filename>), i.e. as a kernel block device node such as <filename>/dev/sda</filename> or |
| 57 |
<filename>/dev/disk/by-id/…</filename>. Volume names that are not normalized or that do not begin with |
| 58 |
<filename>/dev/</filename> are not accepted.</para> |
| 59 |
</refsect1> |
| 60 |
|
| 61 |
<refsect1> |
| 62 |
<title>Options</title> |
| 63 |
|
| 64 |
<para>The following options are understood:</para> |
| 65 |
|
| 66 |
<variablelist> |
| 67 |
<xi:include href="standard-options.xml" xpointer="help" /> |
| 68 |
<xi:include href="standard-options.xml" xpointer="version" /> |
| 69 |
</variablelist> |
| 70 |
</refsect1> |
| 71 |
|
| 72 |
<refsect1> |
| 73 |
<title>Files</title> |
| 74 |
|
| 75 |
<variablelist> |
| 76 |
<varlistentry> |
| 77 |
<term><filename>/run/systemd/io.systemd.StorageProvider/block</filename></term> |
| 78 |
|
| 79 |
<listitem><para>AF_UNIX socket the service listens on. This is the canonical location |
| 80 |
for the <literal>block</literal> storage provider, and is enumerated by |
| 81 |
<command>storagectl providers</command>.</para> |
| 82 |
|
| 83 |
<xi:include href="version-info.xml" xpointer="v261"/></listitem> |
| 84 |
</varlistentry> |
| 85 |
</variablelist> |
| 86 |
</refsect1> |
| 87 |
|
| 88 |
<refsect1> |
| 89 |
<title>See Also</title> |
| 90 |
<para><simplelist type="inline"> |
| 91 |
<member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 92 |
<member><citerefentry><refentrytitle>storagectl</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 93 |
<member><citerefentry><refentrytitle>[email protected]</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 94 |
</simplelist></para> |
| 95 |
</refsect1> |
| 96 |
|
| 97 |
</refentry> |