[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 " ">
|
---|
[0a7ee10] | 9 | <!ENTITY fuse3-md5sum "1c60ab35e72f1b6cb3903a49f3563aee">
|
---|
| 10 | <!ENTITY fuse3-size "2.0 MB">
|
---|
| 11 | <!ENTITY fuse3-buildsize "146 MB">
|
---|
[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 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 |
|
---|
[81060947] | 22 | <title>Fuse-&fuse3-version;</title>
|
---|
[ee000c3d] | 23 |
|
---|
[81060947] | 24 | <indexterm zone="fuse3">
|
---|
[2630345] | 25 | <primary sortas="a-fuse-3">Fuse 3</primary>
|
---|
[ee000c3d] | 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to Fuse</title>
|
---|
| 30 |
|
---|
| 31 | <para>
|
---|
| 32 | <application>FUSE</application> (Filesystem in Userspace) is a simple
|
---|
| 33 | interface for userspace programs to export a virtual filesystem to the
|
---|
| 34 | Linux kernel. <application>Fuse</application> also aims to provide a
|
---|
| 35 | secure method for non privileged users to create and mount their own
|
---|
| 36 | filesystem implementations.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
[eef74ab] | 39 | &lfs101_checked;
|
---|
[ee000c3d] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
[81060947] | 45 | Download (HTTP): <ulink url="&fuse3-download-http;"/>
|
---|
[ee000c3d] | 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
[81060947] | 50 | Download (FTP): <ulink url="&fuse3-download-ftp;"/>
|
---|
[ee000c3d] | 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
[81060947] | 55 | Download MD5 sum: &fuse3-md5sum;
|
---|
[ee000c3d] | 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
[81060947] | 60 | Download size: &fuse3-size;
|
---|
[ee000c3d] | 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
[81060947] | 65 | Estimated disk space required: &fuse3-buildsize;
|
---|
[ee000c3d] | 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
[81060947] | 70 | Estimated build time: &fuse3-time;
|
---|
[ee000c3d] | 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[c35f51a] | 75 | <bridgehead renderas="sect3">Fuse Dependencies</bridgehead>
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 77 | <para role="optional">
|
---|
[8ec0245] | 78 | <xref linkend="doxygen"/> (to rebuild the API documentation) and
|
---|
| 79 | <ulink url="https://pypi.org/project/pytest/">pytest</ulink> (for tests)
|
---|
[c35f51a] | 80 | </para>
|
---|
[ff9b2cd] | 81 |
|
---|
[ee000c3d] | 82 | <para condition="html" role="usernotes">
|
---|
| 83 | User Notes: <ulink url="&blfs-wiki;/fuse"/>
|
---|
| 84 | </para>
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="kernel" id="fuse-kernel">
|
---|
| 88 | <title>Kernel Configuration</title>
|
---|
| 89 |
|
---|
| 90 | <para>
|
---|
| 91 | Enable the following options in the kernel configuration and recompile the
|
---|
| 92 | kernel if necessary:
|
---|
| 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <screen><literal>File systems --->
|
---|
[421128a1] | 96 | <*/M> FUSE (Filesystem in Userspace) support [CONFIG_FUSE_FS]</literal></screen>
|
---|
[ee000c3d] | 97 |
|
---|
[8ec0245] | 98 | <para>
|
---|
| 99 | Character devices in user space should be enabled too for running the
|
---|
| 100 | tests:
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
| 103 | <screen><literal>File systems --->
|
---|
| 104 | <*/M> FUSE (Filesystem in Userspace) support [CONFIG_FUSE_FS]
|
---|
| 105 | <*/M> Character device in Userspace support [CONFIG_CUSE]</literal></screen>
|
---|
| 106 |
|
---|
[81060947] | 107 | <indexterm zone="fuse3 fuse-kernel">
|
---|
[2630345] | 108 | <primary sortas="d-fuse3">Fuse 3</primary>
|
---|
[ee000c3d] | 109 | </indexterm>
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="installation">
|
---|
| 113 | <title>Installation of Fuse</title>
|
---|
| 114 |
|
---|
| 115 | <para>
|
---|
| 116 | Install <application>Fuse</application> by running the following
|
---|
| 117 | commands:
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
[7f5826e7] | 120 | <screen><userinput>sed -i '/^udev/,$ s/^/#/' util/meson.build &&
|
---|
[d58c5b7] | 121 |
|
---|
[4da56e0] | 122 | mkdir build &&
|
---|
| 123 | cd build &&
|
---|
| 124 |
|
---|
| 125 | meson --prefix=/usr .. &&
|
---|
[d58c5b7] | 126 | ninja</userinput></screen>
|
---|
[ee000c3d] | 127 |
|
---|
[ff9b2cd] | 128 | <para>
|
---|
| 129 | The API documentation is included in the package, but
|
---|
| 130 | if you have <xref linkend="doxygen"/> installed and wish to rebuild
|
---|
[2f3e3de9] | 131 | it, issue:
|
---|
[ff9b2cd] | 132 | </para>
|
---|
[5a464e4d] | 133 |
|
---|
[2f3e3de9] | 134 | <screen remap="doc"><userinput>doxygen doc/Doxyfile</userinput></screen>
|
---|
| 135 |
|
---|
[8ec0245] | 136 | <!--
|
---|
[ee000c3d] | 137 | <para>
|
---|
| 138 | This package does not come with a test suite.
|
---|
| 139 | </para>
|
---|
[8ec0245] | 140 | -->
|
---|
| 141 |
|
---|
| 142 | <para>
|
---|
| 143 | To test the results, run (as the <systemitem
|
---|
| 144 | role="username">root</systemitem> user):
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
| 147 | <screen role="root"
|
---|
| 148 | remap="test"><userinput>python3 -m pytest test/</userinput></screen>
|
---|
| 149 |
|
---|
| 150 | <para>
|
---|
| 151 | The <ulink url="https://pypi.org/project/pytest/">pytest</ulink>
|
---|
| 152 | Python module is needed for the tests.
|
---|
| 153 | </para>
|
---|
[ee000c3d] | 154 |
|
---|
| 155 | <para>
|
---|
| 156 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 157 | </para>
|
---|
| 158 |
|
---|
[d58c5b7] | 159 | <screen role="root"><userinput>ninja install &&
|
---|
| 160 |
|
---|
| 161 | mv -vf /usr/lib/libfuse3.so.3* /lib &&
|
---|
[7e6b462] | 162 | ln -sfvn ../../lib/libfuse3.so.&fuse3-version; /usr/lib/libfuse3.so &&
|
---|
[5a464e4d] | 163 |
|
---|
[2e0d6b9] | 164 | mv -vf /usr/bin/fusermount3 /bin &&
|
---|
| 165 | mv -vf /usr/sbin/mount.fuse3 /sbin &&
|
---|
| 166 | chmod u+s /bin/fusermount3 &&
|
---|
[ff9b2cd] | 167 |
|
---|
[d58c5b7] | 168 | install -v -m755 -d /usr/share/doc/fuse-&fuse3-version; &&
|
---|
| 169 | install -v -m644 ../doc/{README.NFS,kernel.txt} \
|
---|
| 170 | /usr/share/doc/fuse-&fuse3-version; &&
|
---|
[d3071629] | 171 | cp -Rv ../doc/html /usr/share/doc/fuse-&fuse3-version;</userinput></screen>
|
---|
[5a464e4d] | 172 |
|
---|
[ee000c3d] | 173 | </sect2>
|
---|
| 174 |
|
---|
| 175 | <sect2 role="commands">
|
---|
| 176 | <title>Command Explanations</title>
|
---|
| 177 |
|
---|
| 178 | <para>
|
---|
[d58c5b7] | 179 | <command>sed ... util/meson.build</command>: This command disables the
|
---|
| 180 | installation of a boot script and udev rule that are not needed.
|
---|
[ee000c3d] | 181 | </para>
|
---|
| 182 |
|
---|
[f69944f] | 183 | <para>
|
---|
[d58c5b7] | 184 | <command>mv ... libfuse3.so.3*; ln ... libfuse3.so</command>:
|
---|
| 185 | These commands install the libraries in the /lib directory.
|
---|
[f69944f] | 186 | </para>
|
---|
[e7b74b8] | 187 | <!--
|
---|
[ee000c3d] | 188 | <para>
|
---|
[d58c5b7] | 189 | <command>unzip ...</command>: This uncompresses the installed man pages
|
---|
| 190 | to be consistent with the rest of the man pages.
|
---|
[ee000c3d] | 191 | </para>
|
---|
[e7b74b8] | 192 | -->
|
---|
[ee000c3d] | 193 | </sect2>
|
---|
| 194 |
|
---|
[1647d338] | 195 | <sect2 role="configuration" id="fuse-configuration">
|
---|
[099a8d0] | 196 | <title>Configuring fuse</title>
|
---|
| 197 |
|
---|
| 198 | <sect3 id="fuse-config">
|
---|
| 199 | <title>Config Files</title>
|
---|
| 200 |
|
---|
[f69944f] | 201 | <para>
|
---|
| 202 | Some options regarding mount policy can be set in the file
|
---|
| 203 | <filename>/etc/fuse.conf</filename>. To install the file run the
|
---|
| 204 | following command as the <systemitem class="username">root</systemitem>
|
---|
| 205 | user:
|
---|
| 206 | </para>
|
---|
[099a8d0] | 207 |
|
---|
| 208 | <screen role="root"><userinput>cat > /etc/fuse.conf << "EOF"
|
---|
[51dfb3e] | 209 | <literal># Set the maximum number of FUSE mounts allowed to non-root users.
|
---|
[099a8d0] | 210 | # The default is 1000.
|
---|
| 211 | #
|
---|
| 212 | #mount_max = 1000
|
---|
| 213 |
|
---|
| 214 | # Allow non-root users to specify the 'allow_other' or 'allow_root'
|
---|
| 215 | # mount options.
|
---|
| 216 | #
|
---|
[51dfb3e] | 217 | #user_allow_other</literal>
|
---|
[099a8d0] | 218 | EOF</userinput></screen>
|
---|
| 219 |
|
---|
[f69944f] | 220 | <para>
|
---|
| 221 | Additional information about the meaning of the configuration
|
---|
| 222 | options are found in the man page.
|
---|
| 223 | </para>
|
---|
[099a8d0] | 224 |
|
---|
| 225 | </sect3>
|
---|
| 226 |
|
---|
| 227 | </sect2>
|
---|
| 228 |
|
---|
[ee000c3d] | 229 | <sect2 role="content">
|
---|
| 230 | <title>Contents</title>
|
---|
| 231 |
|
---|
| 232 | <segmentedlist>
|
---|
| 233 | <segtitle>Installed Programs</segtitle>
|
---|
| 234 | <segtitle>Installed Libraries</segtitle>
|
---|
| 235 | <segtitle>Installed Directory</segtitle>
|
---|
| 236 |
|
---|
| 237 | <seglistitem>
|
---|
| 238 | <seg>
|
---|
[0a7ee10] | 239 | fusermount3 and mount.fuse3
|
---|
[ee000c3d] | 240 | </seg>
|
---|
| 241 | <seg>
|
---|
[1647d338] | 242 | libfuse3.so
|
---|
[f69944f] | 243 | </seg>
|
---|
| 244 | <seg>
|
---|
[81060947] | 245 | /usr/include/fuse3 and /usr/share/doc/fuse-&fuse3-version;
|
---|
[ee000c3d] | 246 | </seg>
|
---|
| 247 | </seglistitem>
|
---|
| 248 | </segmentedlist>
|
---|
| 249 |
|
---|
| 250 | <variablelist>
|
---|
| 251 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 252 | <?dbfo list-presentation="list"?>
|
---|
| 253 | <?dbhtml list-presentation="table"?>
|
---|
| 254 |
|
---|
[1647d338] | 255 | <varlistentry id="fusermount3">
|
---|
| 256 | <term><command>fusermount3</command></term>
|
---|
[ee000c3d] | 257 | <listitem>
|
---|
| 258 | <para>
|
---|
[4c24eb0a] | 259 | is a suid root program to mount and unmount Fuse filesystems
|
---|
[ee000c3d] | 260 | </para>
|
---|
[81060947] | 261 | <indexterm zone="fuse3 fusermount3">
|
---|
[1647d338] | 262 | <primary sortas="b-fusermount3">fusermount3</primary>
|
---|
[ee000c3d] | 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
[1647d338] | 267 | <varlistentry id="mount.fuse3">
|
---|
| 268 | <term><command>mount.fuse3</command></term>
|
---|
[ee000c3d] | 269 | <listitem>
|
---|
| 270 | <para>
|
---|
[d58c5b7] | 271 | is the command <command>mount</command> calls to mount a Fuse
|
---|
[4c24eb0a] | 272 | filesystem
|
---|
[ee000c3d] | 273 | </para>
|
---|
[81060947] | 274 | <indexterm zone="fuse3 mount.fuse3">
|
---|
[1647d338] | 275 | <primary sortas="b-mount.fuse3">mount.fuse3</primary>
|
---|
[ee000c3d] | 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
[1647d338] | 280 | <varlistentry id="libfuse3">
|
---|
| 281 | <term><filename class="libraryfile">libfuse3.so</filename></term>
|
---|
[ee000c3d] | 282 | <listitem>
|
---|
| 283 | <para>
|
---|
[4c24eb0a] | 284 | contains the <application>FUSE</application> API functions
|
---|
[ee000c3d] | 285 | </para>
|
---|
[81060947] | 286 | <indexterm zone="fuse3 libfuse3">
|
---|
[1647d338] | 287 | <primary sortas="c-libfuse3">libfuse3.so</primary>
|
---|
[ee000c3d] | 288 | </indexterm>
|
---|
| 289 | </listitem>
|
---|
| 290 | </varlistentry>
|
---|
| 291 |
|
---|
| 292 | </variablelist>
|
---|
[f69944f] | 293 |
|
---|
[ee000c3d] | 294 | </sect2>
|
---|
[f69944f] | 295 |
|
---|
[ee000c3d] | 296 | </sect1>
|
---|