From Fedora Project Wiki
Description
This test case aims to verify that FUSE (Filesystem in Userspace) is working as expected on a Fedora system.
Setup
- Make sure
fuse
is installed:sudo dnf install fuse
. - Make sure you have a non-root user to test FUSE operations.
How to test
- Open a terminal and switch to a non-root user if you're not already one.
- Create a new directory to serve as a mount point, for example:
mkdir ~/my-fuse-mount
. - Use the
fusermount
utility to mount a FUSE filesystem. For testing, you can use a simple loopback FUSE filesystem likebindfs
. First, install it withsudo dnf install bindfs
, then run:bindfs ~/some-folder ~/my-fuse-mount
. - Check the mounted directory with
ls ~/my-fuse-mount
. - Create a new file inside the mounted directory:
touch ~/my-fuse-mount/new-file
. - Unmount the filesystem:
fusermount -u ~/my-fuse-mount
. - Ensure that the directory is unmounted by running
ls ~/my-fuse-mount
.
Expected Results
- You should be able to successfully mount a FUSE filesystem.
- Listing the mounted directory should show the contents of the folder you have loopback-mounted.
- You should be able to create a new file in the mounted directory.
- The
fusermount -u
command should unmount the filesystem successfully. - After unmounting, the directory should be empty or return to its original state.
Optional
- Test with other FUSE-based filesystems like sshfs or ntfs-3g.