mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-01 04:52:12 +08:00
85580446b2
I know it is somewhat useless, but I don't like them for two reasons: first they cannot be seen, and I do not like things I cannot see. Second, git highlights them, and this is disturbing...
281 lines
8.0 KiB
XML
281 lines
8.0 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY fuse3-download-http "https://github.com/libfuse/libfuse/releases/download/fuse-&fuse3-version;/fuse-&fuse3-version;.tar.xz">
|
|
<!ENTITY fuse3-download-ftp " ">
|
|
<!ENTITY fuse3-md5sum "55b87e9ed691c2fa698e491241985b4a">
|
|
<!ENTITY fuse3-size "2.7 MB">
|
|
<!ENTITY fuse3-buildsize "150 MB">
|
|
<!ENTITY fuse3-time "0.1 SBU (add 0.4 SBU for tests)">
|
|
]>
|
|
|
|
<sect1 id="fuse3" xreflabel="Fuse-&fuse3-version;">
|
|
<?dbhtml filename="fuse.html"?>
|
|
|
|
<sect1info>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>Fuse-&fuse3-version;</title>
|
|
|
|
<indexterm zone="fuse3">
|
|
<primary sortas="a-fuse-3">Fuse 3</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to Fuse</title>
|
|
|
|
<para>
|
|
<application>FUSE</application> (Filesystem in Userspace) is a simple
|
|
interface for userspace programs to export a virtual filesystem to the
|
|
Linux kernel. <application>Fuse</application> also aims to provide a
|
|
secure method for non privileged users to create and mount their own
|
|
filesystem implementations.
|
|
</para>
|
|
|
|
&lfs110a_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&fuse3-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&fuse3-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &fuse3-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &fuse3-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &fuse3-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &fuse3-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">Fuse Dependencies</bridgehead>
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="doxygen"/> (to rebuild the API documentation) and
|
|
<ulink url="https://pypi.org/project/pytest/">pytest</ulink> (required for tests)
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">
|
|
User Notes: <ulink url="&blfs-wiki;/fuse"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="kernel" id="fuse-kernel">
|
|
<title>Kernel Configuration</title>
|
|
|
|
<para>
|
|
Enable the following options in the kernel configuration and recompile the
|
|
kernel if necessary:
|
|
</para>
|
|
|
|
<screen><literal>File systems --->
|
|
<*/M> FUSE (Filesystem in Userspace) support [CONFIG_FUSE_FS]</literal></screen>
|
|
|
|
<para>
|
|
Character devices in user space should be enabled too for running the
|
|
tests:
|
|
</para>
|
|
|
|
<screen><literal>File systems --->
|
|
<*/M> FUSE (Filesystem in Userspace) support [CONFIG_FUSE_FS]
|
|
<*/M> Character device in Userspace support [CONFIG_CUSE]</literal></screen>
|
|
|
|
<indexterm zone="fuse3 fuse-kernel">
|
|
<primary sortas="d-fuse3">Fuse 3</primary>
|
|
</indexterm>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Fuse</title>
|
|
|
|
<para>
|
|
Install <application>Fuse</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>sed -i '/^udev/,$ s/^/#/' util/meson.build &&
|
|
|
|
mkdir build &&
|
|
cd build &&
|
|
|
|
meson --prefix=/usr --buildtype=release .. &&
|
|
ninja</userinput></screen>
|
|
|
|
<para>
|
|
The API documentation is included in the package, but
|
|
if you have <xref linkend="doxygen"/> installed and wish to rebuild
|
|
it, issue:
|
|
</para>
|
|
|
|
<screen remap="doc"><userinput>pushd .. &&
|
|
doxygen doc/Doxyfile &&
|
|
popd</userinput></screen>
|
|
|
|
<para>
|
|
To test the results, run (as the <systemitem
|
|
role="username">root</systemitem> user):
|
|
</para>
|
|
|
|
<screen role="root"
|
|
remap="test"><userinput>python3 -m pytest test/</userinput></screen>
|
|
|
|
<para>
|
|
The <ulink url="https://pypi.org/project/pytest/">pytest</ulink>
|
|
Python module is required for the tests.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>ninja install &&
|
|
|
|
chmod u+s /usr/bin/fusermount3 &&
|
|
|
|
install -v -m755 -d /usr/share/doc/fuse-&fuse3-version; &&
|
|
install -v -m644 ../doc/{README.NFS,kernel.txt} \
|
|
/usr/share/doc/fuse-&fuse3-version; &&
|
|
cp -Rv ../doc/html /usr/share/doc/fuse-&fuse3-version;</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<command>sed ... util/meson.build</command>: This command disables the
|
|
installation of a boot script and udev rule that are not needed.
|
|
</para>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
href="../../xincludes/meson-buildtype-release.xml"/>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration" id="fuse-configuration">
|
|
<title>Configuring fuse</title>
|
|
|
|
<sect3 id="fuse-config">
|
|
<title>Config Files</title>
|
|
|
|
<para>
|
|
Some options regarding mount policy can be set in the file
|
|
<filename>/etc/fuse.conf</filename>. To install the file run the
|
|
following command as the <systemitem class="username">root</systemitem>
|
|
user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>cat > /etc/fuse.conf << "EOF"
|
|
<literal># Set the maximum number of FUSE mounts allowed to non-root users.
|
|
# The default is 1000.
|
|
#
|
|
#mount_max = 1000
|
|
|
|
# Allow non-root users to specify the 'allow_other' or 'allow_root'
|
|
# mount options.
|
|
#
|
|
#user_allow_other</literal>
|
|
EOF</userinput></screen>
|
|
|
|
<para>
|
|
Additional information about the meaning of the configuration
|
|
options are found in the man page.
|
|
</para>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
fusermount3 and mount.fuse3
|
|
</seg>
|
|
<seg>
|
|
libfuse3.so
|
|
</seg>
|
|
<seg>
|
|
/usr/include/fuse3 and /usr/share/doc/fuse-&fuse3-version;
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="fusermount3">
|
|
<term><command>fusermount3</command></term>
|
|
<listitem>
|
|
<para>
|
|
is a suid root program to mount and unmount Fuse filesystems
|
|
</para>
|
|
<indexterm zone="fuse3 fusermount3">
|
|
<primary sortas="b-fusermount3">fusermount3</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="mount.fuse3">
|
|
<term><command>mount.fuse3</command></term>
|
|
<listitem>
|
|
<para>
|
|
is the command <command>mount</command> calls to mount a Fuse
|
|
filesystem
|
|
</para>
|
|
<indexterm zone="fuse3 mount.fuse3">
|
|
<primary sortas="b-mount.fuse3">mount.fuse3</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libfuse3">
|
|
<term><filename class="libraryfile">libfuse3.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains the <application>FUSE</application> API functions
|
|
</para>
|
|
<indexterm zone="fuse3 libfuse3">
|
|
<primary sortas="c-libfuse3">libfuse3.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|