]>
Commit | Line | Data |
---|---|---|
58e0ac33 ZJS |
1 | <?xml version="1.0"?> |
2 | <!--*-nxml-*--> | |
3 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> | |
4 | <!-- | |
5 | SPDX-License-Identifier: LGPL-2.1+ | |
58e0ac33 ZJS |
6 | --> |
7 | <refentry id="systemd-makefs@.service"> | |
8 | ||
9 | <refentryinfo> | |
10 | <title>systemd-makefs@.service</title> | |
11 | <productname>systemd</productname> | |
58e0ac33 ZJS |
12 | </refentryinfo> |
13 | ||
14 | <refmeta> | |
15 | <refentrytitle>systemd-makefs@.service</refentrytitle> | |
16 | <manvolnum>8</manvolnum> | |
17 | </refmeta> | |
18 | ||
19 | <refnamediv> | |
20 | <refname>systemd-makefs@.service</refname> | |
21 | <refname>systemd-makeswap@.service</refname> | |
22 | <refname>systemd-growfs@.service</refname> | |
23 | <refname>systemd-makefs</refname> | |
24 | <refname>systemd-growfs</refname> | |
25 | <refpurpose>Creating and growing file systems on demand</refpurpose> | |
26 | </refnamediv> | |
27 | ||
28 | <refsynopsisdiv> | |
29 | <para><filename>systemd-makefs@<replaceable>device</replaceable>.service</filename></para> | |
30 | <para><filename>systemd-makeswap@<replaceable>device</replaceable>.service</filename></para> | |
31 | <para><filename>systemd-growfs@<replaceable>mountpoint</replaceable>.service</filename></para> | |
32 | <para><filename>/usr/lib/systemd/systemd-makefs</filename></para> | |
33 | <para><filename>/usr/lib/systemd/systemd-growfs</filename></para> | |
34 | </refsynopsisdiv> | |
35 | ||
36 | <refsect1> | |
37 | <title>Description</title> | |
38 | ||
39 | <para><filename>systemd-makefs@.service</filename>, | |
40 | <filename>systemd-makeswap@.service</filename>, and | |
41 | <filename>systemd-growfs@.service</filename> are used to implement the | |
42 | <option>x-systemd.makefs</option> and <option>x-systemd.growfs</option> options | |
43 | in <citerefentry project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
44 | see <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>. | |
45 | They are instantiated for each device for which the file system or swap structure | |
1b2ad5d9 | 46 | needs to be initialized, and for each mount point where the file system needs to |
58e0ac33 ZJS |
47 | be grown.</para> |
48 | ||
49 | <para>These services are started at boot, either right before or right after the | |
50 | mount point or swap device are used.</para> | |
51 | ||
52 | <para><filename>systemd-makefs</filename> knows very little about specific file | |
53 | systems and swap devices, and after checking that the block device does not already | |
54 | contain a file system or other content, it will execute binaries specific to | |
55 | each filesystem type (<filename>/sbin/mkfs.*</filename>).</para> | |
56 | ||
57 | <para><filename>systemd-growfs</filename> knows very little about specific file | |
58 | systems and swap devices, and will instruct the kernel to grow the mounted | |
59 | filesystem to full size of the underlying block device. Nevertheless, it needs | |
60 | to know the | |
61 | <citerefentry project='man-pages'><refentrytitle>ioctl</refentrytitle><manvolnum>2</manvolnum></citerefentry> | |
62 | number specific to each file system, so only certain types are supported. | |
63 | Currently: | |
64 | <citerefentry project='man-pages'><refentrytitle>ext4</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
65 | btrfs (see | |
66 | <citerefentry project='man-pages'><refentrytitle>btrfs-man5</refentrytitle><manvolnum>5</manvolnum></citerefentry>), | |
67 | <!-- yes, that's what the man page is called. --> | |
68 | and dm-crypt partitions (see | |
69 | <citerefentry project='die-net'><refentrytitle>cryptsetup</refentrytitle><manvolnum>8</manvolnum></citerefentry>). | |
70 | </para> | |
71 | ||
72 | <para>If the creation of a file system or swap device fails, the mount point or | |
73 | swap is failed too. If the growing of a file system fails, a warning is emitted. | |
74 | </para> | |
75 | </refsect1> | |
76 | ||
77 | <refsect1> | |
78 | <title>See Also</title> | |
79 | <para> | |
80 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
81 | <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
82 | <citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
83 | <citerefentry project='man-pages'><refentrytitle>mkfs.btrfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
84 | <citerefentry project='man-pages'><refentrytitle>mkfs.cramfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
85 | <citerefentry project='man-pages'><refentrytitle>mkfs.ext4</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
86 | <citerefentry project='man-pages'><refentrytitle>mkfs.fat</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
87 | <citerefentry project='man-pages'><refentrytitle>mkfs.hfsplus</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
88 | <citerefentry project='man-pages'><refentrytitle>mkfs.minix</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
89 | <citerefentry project='man-pages'><refentrytitle>mkfs.ntfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
90 | <citerefentry project='man-pages'><refentrytitle>mkfs.xfs</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
91 | </para> | |
92 | </refsect1> | |
93 | ||
94 | </refentry> |