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
6
votes
3 answers

How to initialize a struct using the c style while using the g++ compiler?

Generally, in order to initialize a struct in c, we could only specify part of the fields. Like below: static struct fuse_operations hello_oper = { .getattr = hello_getattr, .readdir = hello_readdir, .open = hello_open, …
injoy
  • 3,993
  • 10
  • 40
  • 69
6
votes
2 answers

fusermount: umount failed: Invalid argument

When I try to umount the FUSE file system, I get an error: root@ubuntu:/home/fufs/src# fusermount -u /tmp/kpfss fusermount: failed to unmount /tmp/kpfss: Invalid argument root@ubuntu:/home/fufs/src# fusermount -z -u /tmp/kpfss fusermount: failed to…
user1414943
  • 61
  • 1
  • 1
  • 3
5
votes
0 answers

How to securely add an entry into a docker container's /etc/passwd for the uid set with docker's --user option

Problem For a docker image (alpine based) that is supposed to run as non-root I have two requirements: I have to mount a FUSE filesystem inside the docker container The users of the docker image are able to set the UID/GID of the docker user with…
andresch
  • 51
  • 2
5
votes
2 answers

FUSE lib passthrough.c example. Where is it mirrors my / exactly?

I'm new to FUSE and c and FSs and I'm messing with passthrough FS example which is given in the libfuse package. Can anyone give a hint where in the code it is commanded that FUSE mirror my root dir, please? Cause I found the two base functions -…
Sophour
  • 106
  • 9
5
votes
0 answers

Increase 4k buffer size for libfuse readdirplus?

Is there a way to modify or increase the size value that is passed to the readdir/readdirplus functions? My implementation uses the low-level API. With directories that are rather complex, deeply nested, or contain a large amount of…
Kal
  • 51
  • 2
5
votes
5 answers

Raspbian Jessie: Cannot mount NTFS external harddrive anymore after 'apt-get upgrade' (fuse device is missing)

After I used apt-get upgrade earlier today, my Raspberry Pi (Raspbian Jessie) stopped being able to automount my external harddrives anymore. Automounting worked perfectly fine before apt-get upgrade, but now I can't even manually mount my external…
jama
  • 141
  • 1
  • 5
5
votes
1 answer

Mounting SSHFS for local folder on Mac OS X to edit files on Ubuntu AWS instance

I want to be able to edit files locally using a nice IDE and have the files on my local machine (~/Code/myproject) get immediately pushed to the Ubuntu machine in the cloud (/home/ubuntu/myproject). I installed FUSE and SSHFS for my Mac OS X…
lollercoaster
  • 15,969
  • 35
  • 115
  • 173
5
votes
1 answer

Wrapping FUSE from Go

I'm playing around with wrapping FUSE with Go. However I've come stuck with how to deal with struct fuse_operations. I can't seem to expose the operations struct by declaring type Operations C.struct_fuse_operations as the members are lower case,…
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
5
votes
4 answers

can't open fuse device in a docker container when mounting a davfs2 volume

I encounter the following error when I try to mount a davfs2 volume on a docker container : geoserver@8e8091d97157:~$ mount owncloud/ /sbin/mount.davfs: loading kernel module fuse /sbin/mount.davfs: loading kernel module fuse…
MaxiReglisse
  • 3,093
  • 1
  • 13
  • 14
5
votes
2 answers

How to disable the page cache in linux kernel?

how to avoid page cache in kernel,the application can directly write or read data from disk?In kernel,how to set?
user6481589
  • 71
  • 2
  • 6
5
votes
1 answer

access Spring context in OSGi bundle

I have an OSGi bundle that uses the bundle-context.xml file to initialize a bean. I have a factory class that needs to get the bean instance. In the…
Ben ODay
  • 20,784
  • 9
  • 45
  • 68
5
votes
0 answers

Is it possible to create a virtual file in Windows? (i.e. FUSE interface)

How hard is it to create a virtual file of sorts on Windows that can add functionality to read/write calls? For instance, ideally I'd want to create a file then attach an event handler so whenever the file is read, the read call blocks and code is…
Phaz
  • 51
  • 1
  • 2
5
votes
1 answer

Presenting a virtual filesystem to a Linux process without root access

I'm looking for a way to present a userspace filesystem to a specific Linux process but I don't have root access. The obvious answer is FUSE but without root access I cannot load the kernel module and so FUSE seems to be out of the question (unless…
tommyvn
  • 713
  • 5
  • 12
5
votes
1 answer

How can I use sshfs to mount a remote drive (BeagleBone) on my Mac?

Why can't I connect to my BeagleBone using sshfs from my mac? I can ssh to this ip address just fine. Do I need to somehow create a special mount point? What does it mean that the socket is not connected? sudo sshfs root@192.168.7.1:…
user391339
  • 8,355
  • 13
  • 58
  • 71
5
votes
2 answers

fuse: Setting offsets for the filler function in readdir

I am implementing a virtual filesystem using the fuse, and need some understanding regarding the offset parameter in readdir. Earlier we were ignoring the offset and passing 0 in the filler function, in which case the kernel should take care. Our…
RajSanpui
  • 11,556
  • 32
  • 79
  • 146