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

How to make symbolic links in FUSE?

I'm developing a FUSE app that takes a directory with mp3's and mounts a filesystem in another directory with the following structure (according to their tag's): Artist1 | -----> Album11 | ----->…
Javier Manzano
  • 4,761
  • 16
  • 56
  • 86
7
votes
1 answer

Implementing asynchronous file system with FUSE on Linux

I tried to ask on FUSE's mailing list but I haven't received any response so far... I have a couple of questions. I'm going to implement a low-level FUSE file system and watch over fuse_chan's descriptor with epoll. I have to fake inodes for…
Goofy
  • 5,187
  • 5
  • 40
  • 56
7
votes
1 answer

web API as virtual filesystem?

I've been toying with the idea of representing RESTful web APIs (e.g. CouchDB, Twitter) as a file system - just for fun and as a learning experience. However, I have no idea whether that's feasible or how to get started. For example, a resource like…
AnC
  • 4,099
  • 8
  • 43
  • 69
7
votes
4 answers

ls: Operation not Permitted

I have a running a fuse fs with options allow_other and umask 0. This gives me a set of files with permissions set to 777. Though when I try to ls -l in the directory containing the files I get the following output: ls: name: Operation not…
Akash Gangil
  • 141
  • 1
  • 3
  • 9
6
votes
4 answers

libfuse: exiting fuse_session_loop

Context: Ubuntu 11.10 and libfuse 2.8.4-1.4ubuntu1 Linux 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux I'm trying to use libfuse. I want to cause fuse_session_loop to exit (from a signal handler or a…
Andrew Tomazos
  • 66,139
  • 40
  • 186
  • 319
6
votes
2 answers

Windows 2008: Virtual file system(like FUSE)

I'm looking for virtual file system for Windows like FUSE for Unix, Are there any suggestions for it? I've looked at dokan , old port fifs and also Callback File System but price of CFS is very huge. Thanks.
Sergii Zagriichuk
  • 5,389
  • 5
  • 28
  • 45
6
votes
1 answer

Unable to write files in a GCP bucket using gcsfuse

I have mounted a storage bucket on a VM using the command: gcsfuse my-bucket /path/to/mount After this I'm able to read files from the bucket in Python using Pandas, but I'm not able to write files nor create new folders. I have tried with Python…
Luis Ramon Ramirez Rodriguez
  • 9,591
  • 27
  • 102
  • 181
6
votes
1 answer

Why does FUSE readdir returns Input/output error?

I am seeing a strange issue while implementing the readdir() functionality in fuse. Basically when I do ls on any directory in fuse, I get an error such as: # ls ls: reading directory .: Input/output error file1.c file2.c But the strange thing…
user465033
  • 61
  • 1
  • 3
6
votes
2 answers

Is it possible to run gcsfuse without privileged mode inside GCP kubernetes?

Following this guide,I am trying to run gcsfuse inside a pod in GKE. Below is the deployment manifest that I am using: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: gcsfuse-test spec: replicas: 1 template: metadata: …
Amit Yadav
  • 4,422
  • 5
  • 34
  • 79
6
votes
3 answers

Windows cli equivalent of Mac `xattr`?

I thought extended file attributes existed in NTFS which Windows supports. I cannot find a cmd for accessing/updating attributes. Is there a flavor of Windows (and its file system) that supports this? I tried getfattr, setfattr, and a number of…
Mario
  • 6,572
  • 3
  • 42
  • 74
6
votes
3 answers

use gcsfuse to mount google cloud storage buckets in a docker container

I am trying to mount a google cloud bucket from within a docker container and get the following error: [root@cdbdc9ccee5b workdir]# gcsfuse -o allow_other --debug_gcs --key-file=/src/gcloud_service_account.json my-bucket-name /gcloud Using mount…
Marshall
  • 413
  • 1
  • 5
  • 10
6
votes
1 answer

Java compilation error : /bin/ld:cannot find -ljvm

I am trying to build a java project http://sourceforge.net/projects/fuse-j/?source=typ_redirect on fedora machine. The compilation fails while compiling JNI bindings. MakeFile include ../build.conf include ../jvm_ldpath.def SRCS := javafs.c…
WillMcavoy
  • 1,795
  • 4
  • 22
  • 34
6
votes
2 answers

(bash) How to find the max supported file-size of a filesystem?

(bash) For a particular directory, I need to discover the maximum file size supported by that filesystem. The filesystem in question is probably mounted from external USB media, and might be FAT32, NTFS, exfat, or ext2. I know I could partially…
RashaMatt
  • 247
  • 1
  • 3
  • 11
6
votes
3 answers

Linux block device simulation & Fuse

My project involves simulating a block device by remote host. For testing I am using FUSE, my file system is a simple change of the "hello" example app, where instead of returning a constant string I just read data directly from a file. When I try…
Boris
  • 3,163
  • 5
  • 37
  • 46
6
votes
1 answer

Using zsh's compdef or compctl to complete a certain directory with _hosts for all commands

I use afuse to automount other hosts to my local file system with sshfs. Like so: afuse -o timeout=30 -o mount_template=sshfs -C %r:/ %m -o unmount_template=fusermount -u -z %m ~/remote/ This works great, but I would like to be able to…
Gurgeh
  • 2,130
  • 15
  • 28