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
0
votes
1 answer

Create files in fuse using C

Im trying to have fuse create files when I mount the system using the init function. However whenever I mount my system the process never ends. Then i cant unmount it afterwards. How do i fix this. void file_init(struct fuse_conn_info *conn){ FILE…
Bans
  • 1
0
votes
1 answer

FUSE getattr function hangs on lstat

I am implementing a FUSE filesystem and as a first step have implemented only the getattr function. The code looks like this: int test_getattr(const char *path, struct stat *statbuf){ return lstat(path, statbuf); } The code works fine when I…
Unknown
  • 57
  • 8
0
votes
1 answer

Convert string file type/permissions to number

I am trying to convert a file type/permissions to a number, for example: -rw-r--r-- 1 user user 741 Mar 10 15:40 test.js I know how to convert the permissions "rw-r--r--" to a number, but I am stuck as to how to convert the file type "-" also? I am…
kyle
  • 197
  • 1
  • 2
  • 11
0
votes
0 answers

Nested FUSE filesystem in Python

I have two different fuse filesystems in Python (subclassing Operations) that I combine into a single mountpoint. Right now I am creating two folders inside another and mounting them there. Something like this: /mnt/myfolder/fuse1…
Hernan
  • 5,811
  • 10
  • 51
  • 86
0
votes
2 answers

yikes invalid device signature

i am using arduino isp to program a ATtiny2313 avr microcontroller. Here is the probelm, when i was programming the avr chip using the default fuse values, everything worked just fine. But then, i changed the fuse bytes as i wanted to use an…
ironstein
  • 421
  • 5
  • 16
0
votes
1 answer

I'm writing a fuse filesystem. How do I pass extra data to fuse_operations?

I'm writing a fuse filesystem. How do I pass extra data to the functions in struct fuse_operations? In particular, how can I access the void *, that I can set in fuse_main() and similar, from functions in struct fuse_operations? I'm looking for a…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
1 answer

Adding I/O Hooks for a Large Directory

I'd like to run a couple of simple hooks on certain I/O operations done in my home directory (unlink and rename in particular). I've learned that with FUSE, I can move my /home/user to, for example, /home/user_data and have that mounted on an empty…
Petr Skocik
  • 58,047
  • 6
  • 95
  • 142
0
votes
2 answers

Mount using offline file system (OFS+FUSE)

I am trying to explore OFS (Offline file system) built on the top of FUSE and still exploring it. http://offlinefs.sourceforge.net/wiki/ I installed it on both Fedora and Ubuntu 14.04,however whenever I try to mount any local directory using mount…
WillMcavoy
  • 1,795
  • 4
  • 22
  • 34
0
votes
1 answer

Mounting Hadoop files system

I have followed the following link to mount HDFS as local file system http://solutionsatexperts.com/hadoop-fuse-installation-and-configuration-on-centos/ After downloading the hdfs-dfs, they mentioned to install rpm package. As per link, I have…
wazza
  • 770
  • 5
  • 17
  • 42
0
votes
1 answer

How to save the contents of a file system on to a file

What is the best practice to save and retrieve a file system in UNIX. Say I have a filesystem at /mnt/vin, my requirement is to save the contents to a file. How to do this?
Vinay Sheshadri
  • 361
  • 4
  • 13
0
votes
0 answers

Function in fuse linux in c

I am new in linux, and i have an assignment about FUSE. My FUSE need to be able open a file, edit, and rename it. Here is my full code #include #include #include #include #include #include…
0
votes
1 answer

FUSE: Multiple opens on the same file

Does the OS/VFS/FUSE-layer manage the semantics of multiple handles to the same file, or is that something that the driver has to arbitrate?
Dustin Oprea
  • 9,673
  • 13
  • 65
  • 105
0
votes
1 answer

EncFS: Trying to create folder in a folder results in permission error

I have an server where I want to encrypt some data for protection so usualy I do sudo encfs /folder/encrypted /folder/unencrypted -o allow_other When I then later try to (using a normal user) create a folder or file in the root of /folder/encrypted…
user2080223
0
votes
1 answer

Creating and writing a file with python on an afp volume buggy

Is there a known problem to write on an mounted afp volume with python (2.7.3)? >f = open("/mnt/foo/test.txt","w+"); this results in Traceback (most recent call last): File "", line 1, in IOError: [Errno 5] Input/output error:…
arbyter
  • 539
  • 1
  • 4
  • 12
0
votes
0 answers

encfs on OSX Mavericks: illegal hardware instruction

I use encfs to encode the personal documents that I keep on cloud drives. I have written a script that mounts the encoded folders at startup on MacOS, and it works flawlessly on two of my Macs. The third Mac (iMac 2008), though, fails to run encfs…
retrography
  • 6,302
  • 3
  • 22
  • 32