]>
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+ | |
6 | ||
7 | This file is part of systemd. | |
8 | ||
9 | Copyright 2017 Zbigniew Jędrzejewski-Szmek | |
10 | ||
11 | systemd is free software; you can redistribute it and/or modify it | |
12 | under the terms of the GNU Lesser General Public License as published by | |
13 | the Free Software Foundation; either version 2.1 of the License, or | |
14 | (at your option) any later version. | |
15 | ||
16 | systemd is distributed in the hope that it will be useful, but | |
17 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
19 | Lesser General Public License for more details. | |
20 | ||
21 | You should have received a copy of the GNU Lesser General Public License | |
22 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
23 | --> | |
24 | <refentry id="systemd-makefs@.service"> | |
25 | ||
26 | <refentryinfo> | |
27 | <title>systemd-makefs@.service</title> | |
28 | <productname>systemd</productname> | |
29 | ||
30 | <authorgroup> | |
31 | <author> | |
32 | <contrib>Developer</contrib> | |
33 | <firstname>Zbigniew</firstname> | |
34 | <surname>Jędrzejewski-Szmek</surname> | |
35 | <email>zbyszek@in.waw.pl</email> | |
36 | </author> | |
37 | </authorgroup> | |
38 | </refentryinfo> | |
39 | ||
40 | <refmeta> | |
41 | <refentrytitle>systemd-makefs@.service</refentrytitle> | |
42 | <manvolnum>8</manvolnum> | |
43 | </refmeta> | |
44 | ||
45 | <refnamediv> | |
46 | <refname>systemd-makefs@.service</refname> | |
47 | <refname>systemd-makeswap@.service</refname> | |
48 | <refname>systemd-growfs@.service</refname> | |
49 | <refname>systemd-makefs</refname> | |
50 | <refname>systemd-growfs</refname> | |
51 | <refpurpose>Creating and growing file systems on demand</refpurpose> | |
52 | </refnamediv> | |
53 | ||
54 | <refsynopsisdiv> | |
55 | <para><filename>systemd-makefs@<replaceable>device</replaceable>.service</filename></para> | |
56 | <para><filename>systemd-makeswap@<replaceable>device</replaceable>.service</filename></para> | |
57 | <para><filename>systemd-growfs@<replaceable>mountpoint</replaceable>.service</filename></para> | |
58 | <para><filename>/usr/lib/systemd/systemd-makefs</filename></para> | |
59 | <para><filename>/usr/lib/systemd/systemd-growfs</filename></para> | |
60 | </refsynopsisdiv> | |
61 | ||
62 | <refsect1> | |
63 | <title>Description</title> | |
64 | ||
65 | <para><filename>systemd-makefs@.service</filename>, | |
66 | <filename>systemd-makeswap@.service</filename>, and | |
67 | <filename>systemd-growfs@.service</filename> are used to implement the | |
68 | <option>x-systemd.makefs</option> and <option>x-systemd.growfs</option> options | |
69 | in <citerefentry project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
70 | see <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>. | |
71 | They are instantiated for each device for which the file system or swap structure | |
72 | needs to be initalized, and for each mount point where the file system needs to | |
73 | be grown.</para> | |
74 | ||
75 | <para>These services are started at boot, either right before or right after the | |
76 | mount point or swap device are used.</para> | |
77 | ||
78 | <para><filename>systemd-makefs</filename> knows very little about specific file | |
79 | systems and swap devices, and after checking that the block device does not already | |
80 | contain a file system or other content, it will execute binaries specific to | |
81 | each filesystem type (<filename>/sbin/mkfs.*</filename>).</para> | |
82 | ||
83 | <para><filename>systemd-growfs</filename> knows very little about specific file | |
84 | systems and swap devices, and will instruct the kernel to grow the mounted | |
85 | filesystem to full size of the underlying block device. Nevertheless, it needs | |
86 | to know the | |
87 | <citerefentry project='man-pages'><refentrytitle>ioctl</refentrytitle><manvolnum>2</manvolnum></citerefentry> | |
88 | number specific to each file system, so only certain types are supported. | |
89 | Currently: | |
90 | <citerefentry project='man-pages'><refentrytitle>ext4</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
91 | btrfs (see | |
92 | <citerefentry project='man-pages'><refentrytitle>btrfs-man5</refentrytitle><manvolnum>5</manvolnum></citerefentry>), | |
93 | <!-- yes, that's what the man page is called. --> | |
94 | and dm-crypt partitions (see | |
95 | <citerefentry project='die-net'><refentrytitle>cryptsetup</refentrytitle><manvolnum>8</manvolnum></citerefentry>). | |
96 | </para> | |
97 | ||
98 | <para>If the creation of a file system or swap device fails, the mount point or | |
99 | swap is failed too. If the growing of a file system fails, a warning is emitted. | |
100 | </para> | |
101 | </refsect1> | |
102 | ||
103 | <refsect1> | |
104 | <title>See Also</title> | |
105 | <para> | |
106 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
107 | <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
108 | <citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
109 | <citerefentry project='man-pages'><refentrytitle>mkfs.btrfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
110 | <citerefentry project='man-pages'><refentrytitle>mkfs.cramfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
111 | <citerefentry project='man-pages'><refentrytitle>mkfs.ext4</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
112 | <citerefentry project='man-pages'><refentrytitle>mkfs.fat</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
113 | <citerefentry project='man-pages'><refentrytitle>mkfs.hfsplus</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
114 | <citerefentry project='man-pages'><refentrytitle>mkfs.minix</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
115 | <citerefentry project='man-pages'><refentrytitle>mkfs.ntfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
116 | <citerefentry project='man-pages'><refentrytitle>mkfs.xfs</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
117 | </para> | |
118 | </refsect1> | |
119 | ||
120 | </refentry> |