[ee000c3d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dcdaf3] | 7 | <!ENTITY fuse3-download-http "https://github.com/libfuse/libfuse/releases/download/fuse-&fuse3-version;/fuse-&fuse3-version;.tar.xz">
|
---|
[81060947] | 8 | <!ENTITY fuse3-download-ftp " ">
|
---|
[fec8a19] | 9 | <!ENTITY fuse3-md5sum "f2830b775bcba2ab9cb94f2619c077a4">
|
---|
| 10 | <!ENTITY fuse3-size "3.9 MB">
|
---|
| 11 | <!ENTITY fuse3-buildsize "102 MB (with tests and documentation)">
|
---|
[8ec0245] | 12 | <!ENTITY fuse3-time "0.1 SBU (add 0.4 SBU for tests)">
|
---|
[ee000c3d] | 13 | ]>
|
---|
| 14 |
|
---|
[81060947] | 15 | <sect1 id="fuse3" xreflabel="Fuse-&fuse3-version;">
|
---|
[ee000c3d] | 16 | <?dbhtml filename="fuse.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[81060947] | 19 | <title>Fuse-&fuse3-version;</title>
|
---|
[ee000c3d] | 20 |
|
---|
[81060947] | 21 | <indexterm zone="fuse3">
|
---|
[2630345] | 22 | <primary sortas="a-fuse-3">Fuse 3</primary>
|
---|
[ee000c3d] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Fuse</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>FUSE</application> (Filesystem in Userspace) is a simple
|
---|
| 30 | interface for userspace programs to export a virtual filesystem to the
|
---|
| 31 | Linux kernel. <application>Fuse</application> also aims to provide a
|
---|
| 32 | secure method for non privileged users to create and mount their own
|
---|
| 33 | filesystem implementations.
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
[15445ab] | 36 | &lfs113_checked;
|
---|
[ee000c3d] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
[81060947] | 42 | Download (HTTP): <ulink url="&fuse3-download-http;"/>
|
---|
[ee000c3d] | 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
[81060947] | 47 | Download (FTP): <ulink url="&fuse3-download-ftp;"/>
|
---|
[ee000c3d] | 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
[81060947] | 52 | Download MD5 sum: &fuse3-md5sum;
|
---|
[ee000c3d] | 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
[81060947] | 57 | Download size: &fuse3-size;
|
---|
[ee000c3d] | 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
[81060947] | 62 | Estimated disk space required: &fuse3-buildsize;
|
---|
[ee000c3d] | 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
[81060947] | 67 | Estimated build time: &fuse3-time;
|
---|
[ee000c3d] | 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
[c35f51a] | 72 | <bridgehead renderas="sect3">Fuse Dependencies</bridgehead>
|
---|
| 73 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 74 | <para role="optional">
|
---|
[8ec0245] | 75 | <xref linkend="doxygen"/> (to rebuild the API documentation) and
|
---|
[8b819c5] | 76 | <xref linkend="pytest"/> (required for tests)
|
---|
[c35f51a] | 77 | </para>
|
---|
[ff9b2cd] | 78 |
|
---|
[ee000c3d] | 79 | <para condition="html" role="usernotes">
|
---|
| 80 | User Notes: <ulink url="&blfs-wiki;/fuse"/>
|
---|
| 81 | </para>
|
---|
| 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2 role="kernel" id="fuse-kernel">
|
---|
| 85 | <title>Kernel Configuration</title>
|
---|
| 86 |
|
---|
| 87 | <para>
|
---|
| 88 | Enable the following options in the kernel configuration and recompile the
|
---|
| 89 | kernel if necessary:
|
---|
| 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <screen><literal>File systems --->
|
---|
[421128a1] | 93 | <*/M> FUSE (Filesystem in Userspace) support [CONFIG_FUSE_FS]</literal></screen>
|
---|
[ee000c3d] | 94 |
|
---|
[8ec0245] | 95 | <para>
|
---|
[a0e08b2] | 96 | Character devices in userspace should be enabled too for running the
|
---|
[8ec0245] | 97 | tests:
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <screen><literal>File systems --->
|
---|
| 101 | <*/M> FUSE (Filesystem in Userspace) support [CONFIG_FUSE_FS]
|
---|
| 102 | <*/M> Character device in Userspace support [CONFIG_CUSE]</literal></screen>
|
---|
| 103 |
|
---|
[81060947] | 104 | <indexterm zone="fuse3 fuse-kernel">
|
---|
[2630345] | 105 | <primary sortas="d-fuse3">Fuse 3</primary>
|
---|
[ee000c3d] | 106 | </indexterm>
|
---|
| 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="installation">
|
---|
| 110 | <title>Installation of Fuse</title>
|
---|
| 111 |
|
---|
| 112 | <para>
|
---|
| 113 | Install <application>Fuse</application> by running the following
|
---|
| 114 | commands:
|
---|
| 115 | </para>
|
---|
| 116 |
|
---|
[7f5826e7] | 117 | <screen><userinput>sed -i '/^udev/,$ s/^/#/' util/meson.build &&
|
---|
[d58c5b7] | 118 |
|
---|
[4da56e0] | 119 | mkdir build &&
|
---|
| 120 | cd build &&
|
---|
| 121 |
|
---|
[adf17153] | 122 | meson --prefix=/usr --buildtype=release .. &&
|
---|
[d58c5b7] | 123 | ninja</userinput></screen>
|
---|
[ee000c3d] | 124 |
|
---|
[ff9b2cd] | 125 | <para>
|
---|
[8558044] | 126 | The API documentation is included in the package, but
|
---|
| 127 | if you have <xref linkend="doxygen"/> installed and wish to rebuild
|
---|
[2f3e3de9] | 128 | it, issue:
|
---|
[8558044] | 129 | </para>
|
---|
[5a464e4d] | 130 |
|
---|
[5c2571e3] | 131 | <screen remap="doc"><userinput>pushd .. &&
|
---|
| 132 | doxygen doc/Doxyfile &&
|
---|
| 133 | popd</userinput></screen>
|
---|
[8ec0245] | 134 |
|
---|
| 135 | <para>
|
---|
| 136 | To test the results, run (as the <systemitem
|
---|
| 137 | role="username">root</systemitem> user):
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
[8d3c348] | 140 | <!-- EDITORS NOTE: To view the results of the tests, look for
|
---|
| 141 | "short test summary info" at the end of your log. Below skipped tests,
|
---|
| 142 | you will see "X passed, X skipped, X failed (if any) in X seconds" -->
|
---|
| 143 |
|
---|
[8ec0245] | 144 | <screen role="root"
|
---|
| 145 | remap="test"><userinput>python3 -m pytest test/</userinput></screen>
|
---|
| 146 |
|
---|
| 147 | <para>
|
---|
[8b819c5] | 148 | The <xref linkend="pytest"/> Python
|
---|
[4852356] | 149 | module is required for the tests. One test named
|
---|
[0f21ee62] | 150 | <filename>test_cuse</filename> will fail if the
|
---|
[1fe05eb] | 151 | <parameter>CONFIG_CUSE</parameter> configuration item was not enabled
|
---|
[4852356] | 152 | when the kernel was built. Two tests,
|
---|
| 153 | <filename>test_ctests.py</filename> and
|
---|
| 154 | <filename>test_examples.py</filename> will produce a warning because a
|
---|
| 155 | deprecated Python module is used.
|
---|
[8ec0245] | 156 | </para>
|
---|
[ee000c3d] | 157 |
|
---|
| 158 | <para>
|
---|
| 159 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 160 | </para>
|
---|
| 161 |
|
---|
[c2f9a33] | 162 | <screen role="root"><userinput>ninja install &&
|
---|
| 163 | chmod u+s /usr/bin/fusermount3 &&
|
---|
| 164 |
|
---|
| 165 | cd .. &&
|
---|
| 166 | install -v -m755 -d /usr/share/doc/fuse-&fuse3-version; &&
|
---|
| 167 | install -v -m644 doc/{README.NFS,kernel.txt} \
|
---|
| 168 | /usr/share/doc/fuse-&fuse3-version; &&
|
---|
| 169 | cp -Rv doc/html /usr/share/doc/fuse-&fuse3-version;</userinput></screen>
|
---|
[5a464e4d] | 170 |
|
---|
[ee000c3d] | 171 | </sect2>
|
---|
| 172 |
|
---|
| 173 | <sect2 role="commands">
|
---|
| 174 | <title>Command Explanations</title>
|
---|
| 175 |
|
---|
| 176 | <para>
|
---|
[d58c5b7] | 177 | <command>sed ... util/meson.build</command>: This command disables the
|
---|
| 178 | installation of a boot script and udev rule that are not needed.
|
---|
[ee000c3d] | 179 | </para>
|
---|
| 180 |
|
---|
[adf17153] | 181 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 182 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 183 |
|
---|
[ee000c3d] | 184 | </sect2>
|
---|
| 185 |
|
---|
[1647d338] | 186 | <sect2 role="configuration" id="fuse-configuration">
|
---|
[099a8d0] | 187 | <title>Configuring fuse</title>
|
---|
| 188 |
|
---|
| 189 | <sect3 id="fuse-config">
|
---|
| 190 | <title>Config Files</title>
|
---|
| 191 |
|
---|
[f69944f] | 192 | <para>
|
---|
| 193 | Some options regarding mount policy can be set in the file
|
---|
| 194 | <filename>/etc/fuse.conf</filename>. To install the file run the
|
---|
| 195 | following command as the <systemitem class="username">root</systemitem>
|
---|
| 196 | user:
|
---|
| 197 | </para>
|
---|
[099a8d0] | 198 |
|
---|
| 199 | <screen role="root"><userinput>cat > /etc/fuse.conf << "EOF"
|
---|
[51dfb3e] | 200 | <literal># Set the maximum number of FUSE mounts allowed to non-root users.
|
---|
[099a8d0] | 201 | # The default is 1000.
|
---|
| 202 | #
|
---|
| 203 | #mount_max = 1000
|
---|
| 204 |
|
---|
| 205 | # Allow non-root users to specify the 'allow_other' or 'allow_root'
|
---|
| 206 | # mount options.
|
---|
| 207 | #
|
---|
[51dfb3e] | 208 | #user_allow_other</literal>
|
---|
[099a8d0] | 209 | EOF</userinput></screen>
|
---|
| 210 |
|
---|
[f69944f] | 211 | <para>
|
---|
| 212 | Additional information about the meaning of the configuration
|
---|
| 213 | options are found in the man page.
|
---|
| 214 | </para>
|
---|
[099a8d0] | 215 |
|
---|
| 216 | </sect3>
|
---|
| 217 |
|
---|
| 218 | </sect2>
|
---|
| 219 |
|
---|
[ee000c3d] | 220 | <sect2 role="content">
|
---|
| 221 | <title>Contents</title>
|
---|
| 222 |
|
---|
| 223 | <segmentedlist>
|
---|
| 224 | <segtitle>Installed Programs</segtitle>
|
---|
| 225 | <segtitle>Installed Libraries</segtitle>
|
---|
| 226 | <segtitle>Installed Directory</segtitle>
|
---|
| 227 |
|
---|
| 228 | <seglistitem>
|
---|
| 229 | <seg>
|
---|
[0a7ee10] | 230 | fusermount3 and mount.fuse3
|
---|
[ee000c3d] | 231 | </seg>
|
---|
| 232 | <seg>
|
---|
[1647d338] | 233 | libfuse3.so
|
---|
[f69944f] | 234 | </seg>
|
---|
| 235 | <seg>
|
---|
[81060947] | 236 | /usr/include/fuse3 and /usr/share/doc/fuse-&fuse3-version;
|
---|
[ee000c3d] | 237 | </seg>
|
---|
| 238 | </seglistitem>
|
---|
| 239 | </segmentedlist>
|
---|
| 240 |
|
---|
| 241 | <variablelist>
|
---|
| 242 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 243 | <?dbfo list-presentation="list"?>
|
---|
| 244 | <?dbhtml list-presentation="table"?>
|
---|
| 245 |
|
---|
[1647d338] | 246 | <varlistentry id="fusermount3">
|
---|
| 247 | <term><command>fusermount3</command></term>
|
---|
[ee000c3d] | 248 | <listitem>
|
---|
| 249 | <para>
|
---|
[4c24eb0a] | 250 | is a suid root program to mount and unmount Fuse filesystems
|
---|
[ee000c3d] | 251 | </para>
|
---|
[81060947] | 252 | <indexterm zone="fuse3 fusermount3">
|
---|
[1647d338] | 253 | <primary sortas="b-fusermount3">fusermount3</primary>
|
---|
[ee000c3d] | 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
[1647d338] | 258 | <varlistentry id="mount.fuse3">
|
---|
| 259 | <term><command>mount.fuse3</command></term>
|
---|
[ee000c3d] | 260 | <listitem>
|
---|
| 261 | <para>
|
---|
[d58c5b7] | 262 | is the command <command>mount</command> calls to mount a Fuse
|
---|
[4c24eb0a] | 263 | filesystem
|
---|
[ee000c3d] | 264 | </para>
|
---|
[81060947] | 265 | <indexterm zone="fuse3 mount.fuse3">
|
---|
[1647d338] | 266 | <primary sortas="b-mount.fuse3">mount.fuse3</primary>
|
---|
[ee000c3d] | 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
| 270 |
|
---|
[1647d338] | 271 | <varlistentry id="libfuse3">
|
---|
| 272 | <term><filename class="libraryfile">libfuse3.so</filename></term>
|
---|
[ee000c3d] | 273 | <listitem>
|
---|
| 274 | <para>
|
---|
[4c24eb0a] | 275 | contains the <application>FUSE</application> API functions
|
---|
[ee000c3d] | 276 | </para>
|
---|
[81060947] | 277 | <indexterm zone="fuse3 libfuse3">
|
---|
[1647d338] | 278 | <primary sortas="c-libfuse3">libfuse3.so</primary>
|
---|
[ee000c3d] | 279 | </indexterm>
|
---|
| 280 | </listitem>
|
---|
| 281 | </varlistentry>
|
---|
| 282 |
|
---|
| 283 | </variablelist>
|
---|
[f69944f] | 284 |
|
---|
[ee000c3d] | 285 | </sect2>
|
---|
[f69944f] | 286 |
|
---|
[ee000c3d] | 287 | </sect1>
|
---|