Questions tagged [fuse]

Fuse stands for Filesystem in Userspace. It can be used to create filesystem backends without writing all the code as a kernel module.

FUSE is a library and a kernel module which allows creating filesystems using only userspace code. It has an API in C and many existing wrappers in other languages. Originally written for Linux >= 2.4 and located behind the VFS layer, now it is usable on many other systems. Since Linux 2.6.14 it's included in the mainline kernel.

Questions about using FUSE API, fuse tools and debugging filesystems using FUSE should be have this tag.

For the latest API, refer to the documentation.

671 questions
164
votes
8 answers

Transport endpoint is not connected

FUSE is constantly(every 2 - 3 days) giving me this Transport endpoint is not connected error on my mount point and the only thing that seems to fix it is rebooting. I currently have my mount points setup like this, I'm not sure what other details…
Alexis Tyler
  • 1,394
  • 6
  • 30
  • 48
86
votes
2 answers

What does (void) 'variable name' do at the beginning of a C function?

I am reading this sample code from FUSE: http://fuse.sourceforge.net/helloworld.html And I am having trouble understanding what the following snippet of code does: static int hello_readdir(const char *path, void *buf, fuse_fill_dir_t filler, …
fyhuang
  • 2,147
  • 5
  • 21
  • 24
82
votes
6 answers

FUSE error: Transport endpoint is not connected

I'm trying to implement the FUSE filesystem. I am receiving this error: cannot access MountDir: Transport endpoint is not connected This the relevant parts of the program. There are two directories, MirrorDir and MountDir, that exist withing the…
AndroidDev
  • 20,466
  • 42
  • 148
  • 239
54
votes
2 answers

How can I mount an S3 bucket to an EC2 instance and write to it with PHP?

I'm working on a project that is being hosted on Amazon Web Services. The server setup consists of two EC2 instances, one Elastic Load Balancer and an extra Elastic Block Store on which the web application resides. The project is supposed to use S3…
Ben Harold
  • 6,242
  • 6
  • 47
  • 71
44
votes
2 answers

FUSE inside Docker

I'm trying to install and use FUSE inside a Docker container. My Dockerfile is the following: FROM golang:1.8 WORKDIR /go/src/app COPY . . RUN apt-get update && apt-get install -y fuse && rm -rf /var/lib/apt/lists/* RUN go-wrapper download RUN…
Cydonia7
  • 3,744
  • 2
  • 23
  • 32
42
votes
6 answers

What happens if you mount to a non-empty mount point with fuse?

I am new to fuse. When I try to run a FUSE client program I get this error: fuse: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount option I understand that a mountpoint is the directory where you will logically…
bernie2436
  • 22,841
  • 49
  • 151
  • 244
39
votes
5 answers

How to register FUSE filesystem type with mount(8) and fstab?

I've written a small FUSE-based filesystem and now the only part's missing is that I want to register it with fstab(5) to auto-mount it on system startup and/or manually mount it with just mount /srv/virtual-db. How can I achieve this? I know, I can…
drdaeman
  • 11,159
  • 7
  • 59
  • 104
25
votes
4 answers

Installing ifuse with Homebrew results in ERROR message

I am just starting to install these binaries to access my iPhone and running into an error when trying to install ifuse. I installed osxfuse v 3.11.2 using Homebrew first. I have two versions loaded in System Preferences: FUSE 3.11.2 and macFuse…
John
  • 469
  • 1
  • 4
  • 17
24
votes
2 answers

How to mount S3 bucket on Kubernetes container/pods?

I am trying to run my spark job on Amazon EKS cluster. My spark job required some static data (reference data) at each data nodes/worker/executor and this reference data is available at S3. Can somebody kindly help me to find out a clean and…
Ajeet
  • 675
  • 1
  • 6
  • 20
23
votes
1 answer

Ubuntu 15.10 no fuse group

I am trying to use sshfs to mount a remote file system. All the guides I can find online say I need to add myself to the fuse group but when I run sudo gpasswd -a $USER fuse I get gpasswd: group 'fuse' does not exist in /etc/group however when I…
Michael
  • 433
  • 1
  • 5
  • 10
22
votes
6 answers

Defining PATH_MAX for a filesystem?

I'm presently writing a filesystem. The statvfs (and even the statfs) structs contain a field specifying the maximum length of a name in that path. As PATH_MAX is defined in the pathconf manpage (getconf), this means it is defined on a per-directory…
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
19
votes
1 answer

Why is granting the SYS_ADMIN privilege for a Docker container "bad"?

I am running into issues with security teams because engineering teams want to FUSE mount a filesystem in Docker, however, to do that, the "--cap-add SYS_ADMIN" flag must be set. Security is not allowing this flag. I have found a lot of articles on…
Chris C
  • 1,012
  • 2
  • 12
  • 19
19
votes
3 answers

Can't expose a fuse based volume to a Docker container

I'm trying to provide my docker container a volume of encrypted file system for internal use. The idea is that the container will write to the volume as usual, but in fact the host will be encrypting the data before writing it to the filesystem. I'm…
Oren
  • 1,796
  • 1
  • 15
  • 17
18
votes
1 answer

How can I create a userspace filesystem with FUSE without using libfuse?

I've found that the FUSE userspace library and kernel interface has been ported, since its inception on Linux, to many other systems, and presents a relatively stable API with a supposedly small surface area. If I wanted to author a filesystem in…
Corbin
  • 1,530
  • 1
  • 9
  • 19
16
votes
5 answers

How to debug FUSE filesystem crash in Linux

Currently I am developing an application using FUSE filesystem module in Linux (2.6 Kernel) in C language. Due to some programming error, the application crashes after mounting the filesystem. Since I am a novice developer in Linux/C environment.…
Hrishi
  • 161
  • 1
  • 1
  • 3
1
2 3
44 45