Fuse-2.9.7

Introduction to Fuse

FUSE (Filesystem in Userspace) is a simple interface for userspace programs to export a virtual filesystem to the Linux kernel. Fuse also aims to provide a secure method for non privileged users to create and mount their own filesystem implementations.

This package is only installed for compatibility with Gvfs-1.40.2. It is not needed with other packages. For full fuse functionality, install Fuse-3.6.2 which does not interfere with these instructions.

This package is known to build and work properly using an LFS-9.0 platform.

Package Information

Fuse Dependencies

Optional

Doxygen-1.8.16 (to rebuild the API documentation)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/fuse2

Kernel Configuration

Enable the following options in the kernel configuration and recompile the kernel if necessary:

File systems  --->
  <*/M> FUSE (Filesystem in Userspace) support [CONFIG_FUSE_FS]

Installation of Fuse

Install Fuse by running the following commands:

./configure --prefix=/usr    \
            --disable-static \
            --exec-prefix=/  &&

make &&
make DESTDIR=$PWD/Dest install

This package does not come with a test suite.

Now, as the root user:

install -vm755 Dest/lib/libfuse.so.2.9.7 /lib                  &&
install -vm755 Dest/lib/libulockmgr.so.1.0.1 /lib                 &&
ln -sfv ../../lib/libfuse.so.2.9.7 /usr/lib/libfuse.so         &&
ln -sfv ../../lib/libulockmgr.so.1.0.1 /usr/lib/libulockmgr.so &&

install -vm644  Dest/lib/pkgconfig/fuse.pc /usr/lib/pkgconfig  && 
                                                         
install -vm4755 Dest/bin/fusermount       /bin                 &&
install -vm755  Dest/bin/ulockmgr_server  /bin                 &&

install -vm755  Dest/sbin/mount.fuse      /sbin                &&

install -vdm755 /usr/include/fuse                              &&

install -vm644  Dest/usr/include/*.h      /usr/include         &&
install -vm644  Dest/usr/include/fuse/*.h /usr/include/fuse/   &&

install -vm644  Dest/usr/share/man/man1/* /usr/share/man/man1  &&
/sbin/ldconfig -v

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

--exec-prefix=/: This parameter moves programs and libraries that could be needed before the /usr directory is mounted, to the root filesystem.

make DESTDIR=$PWD/Dest install: This command installs the files to a temporary directory, so that the needed files can be installed.

Configuring fuse

Config Files

Information on configuring fuse can be found at the section called “Configuring fuse”.

Contents

Installed Programs: fusermount, mount.fuse, and ulockmgr_server
Installed Libraries: libfuse.so and libulockmgr.so
Installed Directory: /usr/include/fuse

Short Descriptions

fusermount

is a suid root program to mount and unmount Fuse filesystems.

mount.fuse

is the command mount would call to mount a Fuse filesystem.

ulockmgr_server

is the Userspace Lock Manager Server for Fuse filesystems.

libfuse.so

contains the FUSE API functions.

libulockmgr.so

contains the Userspace Lock Manager API functions.

Last updated on 2019-08-17 15:16:30 -0700