[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 |
|
---|
[f69944f] | 7 | <!ENTITY fuse-download-http "&sourceforge-repo;/fuse/fuse-&fuse-version;.tar.gz">
|
---|
[ee000c3d] | 8 | <!ENTITY fuse-download-ftp " ">
|
---|
[f69944f] | 9 | <!ENTITY fuse-md5sum "c646133c7bbf8ad9d2ced0888dc4a319">
|
---|
[ee000c3d] | 10 | <!ENTITY fuse-size "548 KB">
|
---|
| 11 | <!ENTITY fuse-buildsize "8.2 MB">
|
---|
| 12 | <!ENTITY fuse-time "0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[f69944f] | 15 | <sect1 id="fuse" xreflabel="Fuse-&fuse-version;">
|
---|
[ee000c3d] | 16 | <?dbhtml filename="fuse.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[f69944f] | 23 | <title>Fuse-&fuse-version;</title>
|
---|
[ee000c3d] | 24 |
|
---|
| 25 | <indexterm zone="fuse">
|
---|
[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 |
|
---|
| 40 | &lfs71_checked;
|
---|
| 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&fuse-download-http;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&fuse-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download MD5 sum: &fuse-md5sum;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Download size: &fuse-size;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated disk space required: &fuse-buildsize;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Estimated build time: &fuse-time;
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
| 76 | <para condition="html" role="usernotes">
|
---|
| 77 | User Notes: <ulink url="&blfs-wiki;/fuse"/>
|
---|
| 78 | </para>
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2 role="kernel" id="fuse-kernel">
|
---|
| 82 | <title>Kernel Configuration</title>
|
---|
| 83 |
|
---|
| 84 | <para>
|
---|
| 85 | Enable the following options in the kernel configuration and recompile the
|
---|
| 86 | kernel if necessary:
|
---|
| 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <screen><literal>File systems --->
|
---|
| 90 | [*] FUSE (Filesystem in Userspace) support</literal></screen>
|
---|
| 91 |
|
---|
| 92 | <indexterm zone="fuse fuse-kernel">
|
---|
| 93 | <primary sortas="d-fuse">fuse</primary>
|
---|
| 94 | </indexterm>
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of Fuse</title>
|
---|
| 99 |
|
---|
| 100 | <para>
|
---|
| 101 | Install <application>Fuse</application> by running the following
|
---|
| 102 | commands:
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
[f69944f] | 105 | <screen><userinput>./configure --prefix=/usr --disable-static INIT_D_PATH=/tmp/init.d &&
|
---|
[ee000c3d] | 106 | make</userinput></screen>
|
---|
| 107 |
|
---|
| 108 | <para>
|
---|
| 109 | This package does not come with a test suite.
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <para>
|
---|
| 113 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
| 116 | <screen role="root"><userinput>make install &&
|
---|
[f69944f] | 117 | mv -v /usr/lib/libfuse.so.* /lib &&
|
---|
| 118 | ln -sfv ../../lib/libfuse.so.&fuse-version; /usr/lib/libfuse.so &&
|
---|
[ee000c3d] | 119 | rm -rf /tmp/init.d</userinput></screen>
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | <sect2 role="commands">
|
---|
| 123 | <title>Command Explanations</title>
|
---|
| 124 |
|
---|
[f69944f] | 125 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 126 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 127 |
|
---|
[ee000c3d] | 128 | <para>
|
---|
| 129 | <parameter>INIT_D_PATH=/tmp/init.d</parameter>: This parameter makes it
|
---|
| 130 | install its bootscript into /tmp/init.d.
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
[f69944f] | 133 | <para>
|
---|
| 134 | <command>mv -v /usr/lib/libfuse.so.* /lib</command>: This moves
|
---|
| 135 | <application>FUSE</application> library to root filesystem
|
---|
| 136 | so that it is available at early boot in case
|
---|
| 137 | <filename class="directory">/usr</filename> is on seperate
|
---|
| 138 | partition and <xref linkend="ntfs-3g"/> is built with system
|
---|
| 139 | <application>FUSE</application>.
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
[ee000c3d] | 142 | <para>
|
---|
| 143 | <command>rm -rf /tmp/init.d</command>: This removes the unneeded
|
---|
| 144 | bootscript.
|
---|
| 145 | </para>
|
---|
[f69944f] | 146 |
|
---|
[ee000c3d] | 147 | </sect2>
|
---|
| 148 |
|
---|
[099a8d0] | 149 | <sect2 role="configuration">
|
---|
| 150 | <title>Configuring fuse</title>
|
---|
| 151 |
|
---|
| 152 | <sect3 id="fuse-config">
|
---|
| 153 | <title>Config Files</title>
|
---|
| 154 |
|
---|
[f69944f] | 155 | <para>
|
---|
| 156 | Some options regarding mount policy can be set in the file
|
---|
| 157 | <filename>/etc/fuse.conf</filename>. To install the file run the
|
---|
| 158 | following command as the <systemitem class="username">root</systemitem>
|
---|
| 159 | user:
|
---|
| 160 | </para>
|
---|
[099a8d0] | 161 |
|
---|
| 162 | <screen role="root"><userinput>cat > /etc/fuse.conf << "EOF"
|
---|
| 163 | # Set the maximum number of FUSE mounts allowed to non-root users.
|
---|
| 164 | # The default is 1000.
|
---|
| 165 | #
|
---|
| 166 | #mount_max = 1000
|
---|
| 167 |
|
---|
| 168 | # Allow non-root users to specify the 'allow_other' or 'allow_root'
|
---|
| 169 | # mount options.
|
---|
| 170 | #
|
---|
| 171 | #user_allow_other
|
---|
| 172 | EOF</userinput></screen>
|
---|
| 173 |
|
---|
[f69944f] | 174 | <para>
|
---|
| 175 | Additional information about the meaning of the configuration
|
---|
| 176 | options are found in the man page.
|
---|
| 177 | </para>
|
---|
[099a8d0] | 178 |
|
---|
| 179 | </sect3>
|
---|
| 180 |
|
---|
| 181 | </sect2>
|
---|
| 182 |
|
---|
[ee000c3d] | 183 | <sect2 role="content">
|
---|
| 184 | <title>Contents</title>
|
---|
| 185 |
|
---|
| 186 | <segmentedlist>
|
---|
| 187 | <segtitle>Installed Programs</segtitle>
|
---|
| 188 | <segtitle>Installed Libraries</segtitle>
|
---|
| 189 | <segtitle>Installed Directory</segtitle>
|
---|
| 190 |
|
---|
| 191 | <seglistitem>
|
---|
| 192 | <seg>
|
---|
| 193 | fusermount,
|
---|
| 194 | mount.fuse and
|
---|
[f69944f] | 195 | ulockmgr_server
|
---|
[ee000c3d] | 196 | </seg>
|
---|
| 197 | <seg>
|
---|
| 198 | libfuse.so and
|
---|
[f69944f] | 199 | libulockmgr.so
|
---|
| 200 | </seg>
|
---|
| 201 | <seg>
|
---|
| 202 | /usr/include/fuse
|
---|
[ee000c3d] | 203 | </seg>
|
---|
| 204 | </seglistitem>
|
---|
| 205 | </segmentedlist>
|
---|
| 206 |
|
---|
| 207 | <variablelist>
|
---|
| 208 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 209 | <?dbfo list-presentation="list"?>
|
---|
| 210 | <?dbhtml list-presentation="table"?>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="fusermount">
|
---|
| 213 | <term><command>fusermount</command></term>
|
---|
| 214 | <listitem>
|
---|
| 215 | <para>
|
---|
| 216 | is a set users ID root program to mount and unmount Fuse
|
---|
| 217 | filesystems.
|
---|
| 218 | </para>
|
---|
| 219 | <indexterm zone="fuse fusermount">
|
---|
| 220 | <primary sortas="b-fusermount">fusermount</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="mount.fuse">
|
---|
| 226 | <term><command>mount.fuse</command></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>
|
---|
| 229 | is the command <command>mount</command> would call to mount a Fuse
|
---|
| 230 | filesystem.
|
---|
| 231 | </para>
|
---|
| 232 | <indexterm zone="fuse mount.fuse">
|
---|
| 233 | <primary sortas="b-mount.fuse">mount.fuse</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
| 237 |
|
---|
| 238 | <varlistentry id="ulockmgr_server">
|
---|
| 239 | <term><command>ulockmgr_server</command></term>
|
---|
| 240 | <listitem>
|
---|
| 241 | <para>
|
---|
| 242 | is the Userspace Lock Manager Server for Fuse filesystems.
|
---|
| 243 | </para>
|
---|
| 244 | <indexterm zone="fuse ulockmgr_server">
|
---|
| 245 | <primary sortas="b-ulockmgr_server">ulockmgr_server</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
| 250 | <varlistentry id="libfuse">
|
---|
| 251 | <term><filename class="libraryfile">libfuse.so</filename></term>
|
---|
| 252 | <listitem>
|
---|
| 253 | <para>
|
---|
[f69944f] | 254 | contains the <application>FUSE</application> API functions.
|
---|
[ee000c3d] | 255 | </para>
|
---|
| 256 | <indexterm zone="fuse libfuse">
|
---|
| 257 | <primary sortas="c-libfuse">libfuse.so</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
| 262 | <varlistentry id="libulockmgr">
|
---|
| 263 | <term><filename class="libraryfile">libulockmgr.so</filename></term>
|
---|
| 264 | <listitem>
|
---|
| 265 | <para>
|
---|
| 266 | contains the Userspace Lock Manager API functions.
|
---|
| 267 | </para>
|
---|
| 268 | <indexterm zone="fuse libulockmgr">
|
---|
| 269 | <primary sortas="c-libulockmgr">libulockmgr.so</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 | </variablelist>
|
---|
[f69944f] | 274 |
|
---|
[ee000c3d] | 275 | </sect2>
|
---|
[f69944f] | 276 |
|
---|
[ee000c3d] | 277 | </sect1>
|
---|