[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 |
|
---|
[ff9b2cd] | 7 | <!ENTITY fuse3-download-http "https://github.com/libfuse/libfuse/releases/download/fuse-&fuse3-version;/fuse-&fuse3-version;.tar.gz">
|
---|
[81060947] | 8 | <!ENTITY fuse3-download-ftp " ">
|
---|
[ff9b2cd] | 9 | <!ENTITY fuse3-md5sum "8fbe5e8293deaa7a2072f30dbdc29669">
|
---|
| 10 | <!ENTITY fuse3-size "708 KB">
|
---|
[81060947] | 11 | <!ENTITY fuse3-buildsize "11 MB">
|
---|
[ff9b2cd] | 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">
|
---|
[f69944f] | 26 | <primary sortas="a-Fuse">Fuse</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 |
|
---|
[63a26beb] | 40 | &lfs80_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">
|
---|
| 99 | <primary sortas="d-fuse3">fuse</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 |
|
---|
[71aa48f] | 111 | <screen><userinput>./configure --prefix=/usr \
|
---|
[dc56bc8] | 112 | --disable-static \
|
---|
[f71807c2] | 113 | --exec-prefix=/ \
|
---|
[ff9b2cd] | 114 | --with-pkgconfigdir=/usr/lib/pkgconfig \
|
---|
[dc56bc8] | 115 | INIT_D_PATH=/tmp/init.d &&
|
---|
[ee000c3d] | 116 | make</userinput></screen>
|
---|
| 117 |
|
---|
[ff9b2cd] | 118 | <para>
|
---|
| 119 | The API documentation is included in the package, but
|
---|
| 120 | if you have <xref linkend="doxygen"/> installed and wish to rebuild
|
---|
| 121 | it, issue <command>doxygen doc/Doxyfile</command>.
|
---|
| 122 | </para>
|
---|
[5a464e4d] | 123 |
|
---|
[ee000c3d] | 124 | <para>
|
---|
| 125 | This package does not come with a test suite.
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | <para>
|
---|
| 129 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
[ff9b2cd] | 132 | <screen role="root"><userinput>make install &&
|
---|
| 133 | rm -v /lib/libfuse3.{so,la} &&
|
---|
| 134 | ln -sfv ../../lib/libfuse3.so.3 /usr/lib/libfuse3.so &&
|
---|
[5a464e4d] | 135 |
|
---|
| 136 | rm -rf /tmp/init.d &&
|
---|
[ff9b2cd] | 137 |
|
---|
[81060947] | 138 | install -v -m755 -d /usr/share/doc/fuse-&fuse3-version; &&
|
---|
[1647d338] | 139 | install -v -m644 doc/{README.NFS,kernel.txt} \
|
---|
[81060947] | 140 | /usr/share/doc/fuse-&fuse3-version; &&
|
---|
| 141 | cp -Rv doc/html /usr/share/doc/fuse-&fuse3-version;</userinput></screen>
|
---|
[5a464e4d] | 142 |
|
---|
[ee000c3d] | 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | <sect2 role="commands">
|
---|
| 146 | <title>Command Explanations</title>
|
---|
| 147 |
|
---|
[f69944f] | 148 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 149 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 150 |
|
---|
[ee000c3d] | 151 | <para>
|
---|
[f71807c2] | 152 | <parameter>--exec-prefix=/</parameter>: This parameter moves programs and
|
---|
| 153 | libraries that could be needed before the
|
---|
| 154 | <filename class="directory">/usr</filename> directory is mounted, to the
|
---|
| 155 | root filesystem.
|
---|
[ee000c3d] | 156 | </para>
|
---|
| 157 |
|
---|
[f69944f] | 158 | <para>
|
---|
[f71807c2] | 159 | <parameter>INIT_D_PATH=/tmp/init.d</parameter>: This parameter installs
|
---|
| 160 | the bootscript into <filename class="directory">/tmp/init.d</filename> as
|
---|
| 161 | a bootscript is not required.
|
---|
[f69944f] | 162 | </para>
|
---|
| 163 |
|
---|
[ee000c3d] | 164 | <para>
|
---|
| 165 | <command>rm -rf /tmp/init.d</command>: This removes the unneeded
|
---|
| 166 | bootscript.
|
---|
| 167 | </para>
|
---|
[f69944f] | 168 |
|
---|
[ee000c3d] | 169 | </sect2>
|
---|
| 170 |
|
---|
[1647d338] | 171 | <sect2 role="configuration" id="fuse-configuration">
|
---|
[099a8d0] | 172 | <title>Configuring fuse</title>
|
---|
| 173 |
|
---|
| 174 | <sect3 id="fuse-config">
|
---|
| 175 | <title>Config Files</title>
|
---|
| 176 |
|
---|
[f69944f] | 177 | <para>
|
---|
| 178 | Some options regarding mount policy can be set in the file
|
---|
| 179 | <filename>/etc/fuse.conf</filename>. To install the file run the
|
---|
| 180 | following command as the <systemitem class="username">root</systemitem>
|
---|
| 181 | user:
|
---|
| 182 | </para>
|
---|
[099a8d0] | 183 |
|
---|
| 184 | <screen role="root"><userinput>cat > /etc/fuse.conf << "EOF"
|
---|
| 185 | # Set the maximum number of FUSE mounts allowed to non-root users.
|
---|
| 186 | # The default is 1000.
|
---|
| 187 | #
|
---|
| 188 | #mount_max = 1000
|
---|
| 189 |
|
---|
| 190 | # Allow non-root users to specify the 'allow_other' or 'allow_root'
|
---|
| 191 | # mount options.
|
---|
| 192 | #
|
---|
| 193 | #user_allow_other
|
---|
| 194 | EOF</userinput></screen>
|
---|
| 195 |
|
---|
[f69944f] | 196 | <para>
|
---|
| 197 | Additional information about the meaning of the configuration
|
---|
| 198 | options are found in the man page.
|
---|
| 199 | </para>
|
---|
[099a8d0] | 200 |
|
---|
| 201 | </sect3>
|
---|
| 202 |
|
---|
| 203 | </sect2>
|
---|
| 204 |
|
---|
[ee000c3d] | 205 | <sect2 role="content">
|
---|
| 206 | <title>Contents</title>
|
---|
| 207 |
|
---|
| 208 | <segmentedlist>
|
---|
| 209 | <segtitle>Installed Programs</segtitle>
|
---|
| 210 | <segtitle>Installed Libraries</segtitle>
|
---|
| 211 | <segtitle>Installed Directory</segtitle>
|
---|
| 212 |
|
---|
| 213 | <seglistitem>
|
---|
| 214 | <seg>
|
---|
[1647d338] | 215 | fusermount3, mount.fuse3
|
---|
[ee000c3d] | 216 | </seg>
|
---|
| 217 | <seg>
|
---|
[1647d338] | 218 | libfuse3.so
|
---|
[f69944f] | 219 | </seg>
|
---|
| 220 | <seg>
|
---|
[81060947] | 221 | /usr/include/fuse3 and /usr/share/doc/fuse-&fuse3-version;
|
---|
[ee000c3d] | 222 | </seg>
|
---|
| 223 | </seglistitem>
|
---|
| 224 | </segmentedlist>
|
---|
| 225 |
|
---|
| 226 | <variablelist>
|
---|
| 227 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 228 | <?dbfo list-presentation="list"?>
|
---|
| 229 | <?dbhtml list-presentation="table"?>
|
---|
| 230 |
|
---|
[1647d338] | 231 | <varlistentry id="fusermount3">
|
---|
| 232 | <term><command>fusermount3</command></term>
|
---|
[ee000c3d] | 233 | <listitem>
|
---|
| 234 | <para>
|
---|
| 235 | is a set users ID root program to mount and unmount Fuse
|
---|
| 236 | filesystems.
|
---|
| 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>
|
---|
| 248 | is the command <command>mount</command> would call to mount a Fuse
|
---|
| 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>
|
---|