source: postlfs/filesystems/fuse3.xml@ a1ea6d4e

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since a1ea6d4e was 14891a90, checked in by Xi Ruoyao <xry111@…>, 12 months ago

treewide: More "User Notes" clean up

Remove links to pages w/o real contents.

  • Property mode set to 100644
File size: 8.8 KB
RevLine 
[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 " ">
[60e8d690]9 <!ENTITY fuse3-md5sum "2abc81e1e75c872ecbbb97eb945c408d">
10 <!ENTITY fuse3-size "4.4 MB">
11 <!ENTITY fuse3-buildsize "232 MB (with tests and documentation)">
[c1be7853]12 <!ENTITY fuse3-time "0.2 SBU (add 0.3 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">
[60e8d690]75 <xref linkend="doxygen"/> (to rebuild the API documentation),
76 <xref linkend="pytest"/> (required for tests), and
77 <ulink url="https://pypi.org/project/looseversion/">looseversion</ulink>
78 (for tests)
[c35f51a]79 </para>
[ff9b2cd]80
[ee000c3d]81 </sect2>
82
83 <sect2 role="kernel" id="fuse-kernel">
84 <title>Kernel Configuration</title>
85
86 <para>
87 Enable the following options in the kernel configuration and recompile the
88 kernel if necessary:
89 </para>
90
91<screen><literal>File systems ---&gt;
[421128a1]92 &lt;*/M&gt; FUSE (Filesystem in Userspace) support [CONFIG_FUSE_FS]</literal></screen>
[ee000c3d]93
[8ec0245]94 <para>
[a0e08b2]95 Character devices in userspace should be enabled too for running the
[8ec0245]96 tests:
97 </para>
98
99<screen><literal>File systems ---&gt;
100 &lt;*/M&gt; FUSE (Filesystem in Userspace) support [CONFIG_FUSE_FS]
101 &lt;*/M&gt; Character device in Userspace support [CONFIG_CUSE]</literal></screen>
102
[81060947]103 <indexterm zone="fuse3 fuse-kernel">
[2630345]104 <primary sortas="d-fuse3">Fuse 3</primary>
[ee000c3d]105 </indexterm>
106 </sect2>
107
108 <sect2 role="installation">
109 <title>Installation of Fuse</title>
110
111 <para>
112 Install <application>Fuse</application> by running the following
113 commands:
114 </para>
115
[7f5826e7]116<screen><userinput>sed -i '/^udev/,$ s/^/#/' util/meson.build &amp;&amp;
[d58c5b7]117
[4da56e0]118mkdir build &amp;&amp;
119cd build &amp;&amp;
120
[91318eb]121meson setup --prefix=/usr --buildtype=release .. &amp;&amp;
[d58c5b7]122ninja</userinput></screen>
[ee000c3d]123
[ff9b2cd]124 <para>
[8558044]125 The API documentation is included in the package, but
126 if you have <xref linkend="doxygen"/> installed and wish to rebuild
[2f3e3de9]127 it, issue:
[8558044]128 </para>
[5a464e4d]129
[5c2571e3]130<screen remap="doc"><userinput>pushd .. &amp;&amp;
131 doxygen doc/Doxyfile &amp;&amp;
132popd</userinput></screen>
[8ec0245]133
134 <para>
[60e8d690]135 To test the results, issue the following commands (as the <systemitem
[8ec0245]136 role="username">root</systemitem> user):
137 </para>
138
[8d3c348]139 <!-- EDITORS NOTE: To view the results of the tests, look for
140 "short test summary info" at the end of your log. Below skipped tests,
141 you will see "X passed, X skipped, X failed (if any) in X seconds" -->
142
[60e8d690]143<screen role="root" remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
144source testenv/bin/activate &amp;&amp;
145pip3 install looseversion &amp;&amp;
146pytest &amp;&amp;
147deactivate</userinput></screen>
[8ec0245]148
149 <para>
[8b819c5]150 The <xref linkend="pytest"/> Python
[60e8d690]151 module is required for the tests. One test named
[0f21ee62]152 <filename>test_cuse</filename> will fail if the
[1fe05eb]153 <parameter>CONFIG_CUSE</parameter> configuration item was not enabled
[60e8d690]154 when the kernel was built. One test,
155 <filename>test/util.py</filename>, will output a warning due to the usage
156 of an unknown mark in pytest.
[8ec0245]157 </para>
[ee000c3d]158
159 <para>
160 Now, as the <systemitem class="username">root</systemitem> user:
161 </para>
162
[c2f9a33]163<screen role="root"><userinput>ninja install &amp;&amp;
164chmod u+s /usr/bin/fusermount3 &amp;&amp;
165
166cd .. &amp;&amp;
167install -v -m755 -d /usr/share/doc/fuse-&fuse3-version; &amp;&amp;
168install -v -m644 doc/{README.NFS,kernel.txt} \
169 /usr/share/doc/fuse-&fuse3-version; &amp;&amp;
170cp -Rv doc/html /usr/share/doc/fuse-&fuse3-version;</userinput></screen>
[5a464e4d]171
[ee000c3d]172 </sect2>
173
174 <sect2 role="commands">
175 <title>Command Explanations</title>
176
177 <para>
[d58c5b7]178 <command>sed ... util/meson.build</command>: This command disables the
179 installation of a boot script and udev rule that are not needed.
[ee000c3d]180 </para>
181
[c1be7853]182<!--
[902450d]183 <para>
184 <command>sed ... meson.build</command>: This command fixes a bug with the
185 test_passthrough_hp test.
186 </para>
[c1be7853]187-->
[902450d]188
[adf17153]189 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
190 href="../../xincludes/meson-buildtype-release.xml"/>
191
[ee000c3d]192 </sect2>
193
[1647d338]194 <sect2 role="configuration" id="fuse-configuration">
[099a8d0]195 <title>Configuring fuse</title>
196
197 <sect3 id="fuse-config">
198 <title>Config Files</title>
199
[f69944f]200 <para>
201 Some options regarding mount policy can be set in the file
202 <filename>/etc/fuse.conf</filename>. To install the file run the
203 following command as the <systemitem class="username">root</systemitem>
204 user:
205 </para>
[099a8d0]206
207<screen role="root"><userinput>cat &gt; /etc/fuse.conf &lt;&lt; "EOF"
[51dfb3e]208<literal># Set the maximum number of FUSE mounts allowed to non-root users.
[099a8d0]209# The default is 1000.
210#
211#mount_max = 1000
212
213# Allow non-root users to specify the 'allow_other' or 'allow_root'
214# mount options.
215#
[51dfb3e]216#user_allow_other</literal>
[099a8d0]217EOF</userinput></screen>
218
[f69944f]219 <para>
220 Additional information about the meaning of the configuration
221 options are found in the man page.
222 </para>
[099a8d0]223
224 </sect3>
225
226 </sect2>
227
[ee000c3d]228 <sect2 role="content">
229 <title>Contents</title>
230
231 <segmentedlist>
232 <segtitle>Installed Programs</segtitle>
233 <segtitle>Installed Libraries</segtitle>
234 <segtitle>Installed Directory</segtitle>
235
236 <seglistitem>
237 <seg>
[0a7ee10]238 fusermount3 and mount.fuse3
[ee000c3d]239 </seg>
240 <seg>
[1647d338]241 libfuse3.so
[f69944f]242 </seg>
243 <seg>
[81060947]244 /usr/include/fuse3 and /usr/share/doc/fuse-&fuse3-version;
[ee000c3d]245 </seg>
246 </seglistitem>
247 </segmentedlist>
248
249 <variablelist>
250 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
251 <?dbfo list-presentation="list"?>
252 <?dbhtml list-presentation="table"?>
253
[1647d338]254 <varlistentry id="fusermount3">
255 <term><command>fusermount3</command></term>
[ee000c3d]256 <listitem>
257 <para>
[4c24eb0a]258 is a suid root program to mount and unmount Fuse filesystems
[ee000c3d]259 </para>
[81060947]260 <indexterm zone="fuse3 fusermount3">
[1647d338]261 <primary sortas="b-fusermount3">fusermount3</primary>
[ee000c3d]262 </indexterm>
263 </listitem>
264 </varlistentry>
265
[1647d338]266 <varlistentry id="mount.fuse3">
267 <term><command>mount.fuse3</command></term>
[ee000c3d]268 <listitem>
269 <para>
[d58c5b7]270 is the command <command>mount</command> calls to mount a Fuse
[4c24eb0a]271 filesystem
[ee000c3d]272 </para>
[81060947]273 <indexterm zone="fuse3 mount.fuse3">
[1647d338]274 <primary sortas="b-mount.fuse3">mount.fuse3</primary>
[ee000c3d]275 </indexterm>
276 </listitem>
277 </varlistentry>
278
[1647d338]279 <varlistentry id="libfuse3">
280 <term><filename class="libraryfile">libfuse3.so</filename></term>
[ee000c3d]281 <listitem>
282 <para>
[4c24eb0a]283 contains the <application>FUSE</application> API functions
[ee000c3d]284 </para>
[81060947]285 <indexterm zone="fuse3 libfuse3">
[1647d338]286 <primary sortas="c-libfuse3">libfuse3.so</primary>
[ee000c3d]287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 </variablelist>
[f69944f]292
[ee000c3d]293 </sect2>
[f69944f]294
[ee000c3d]295</sect1>
Note: See TracBrowser for help on using the repository browser.