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