Questions tagged [libfuse]

7 questions
2
votes
1 answer

Read data from fd which was received from fusermount failed

I want to test fuse and copy some code from libfuse like this: #include #include #include #include #include #include #include #define xlog(_fmt_, ...) …
solomon_wzs
  • 1,711
  • 5
  • 16
  • 29
1
vote
1 answer

How to debug a Dynamic Link Library (libfuse.so) using GDB?

I am a novice developer in Linux/C. Recently, I am developing a file system using libfuse in WSL2 Ubuntu 20.04.6 in C language, and I need to debug the code of libfuse to see the exact calling procedure. But when I try to load the .so file in GDB,…
Yuki Lau
  • 11
  • 2
1
vote
1 answer

How to intercept storage size query commands

I am developing a file system using libfuse and need to find a way to intercept calls for storage size querying, i.e. du and df. But I have been unable to identify how to this and unable to find an example that showcase this. Looking at the debug…
Lars Nielsen
  • 2,005
  • 2
  • 25
  • 48
1
vote
1 answer

Custom fs with libfuse and file ownership

When user create file, create callback will be called: int (*create) (const char *, mode_t, struct fuse_file_info *); see link for details https://github.com/libfuse/libfuse/blob/74596e2929c9b9b065f90d04ab7a2232652c64c4/include/fuse.h#L609 But…
Andriy Kopachevskyy
  • 7,276
  • 10
  • 47
  • 56
0
votes
1 answer

fuse: pass through custom open flags from the "open(2)" call `.open` handler in fuse implementation

I have implemented a fuse driver for cache management. I would like to give some hints from the application side to fuse driver using file system calls like open(2), e.g., sequential read pattern. I thought I could use the flags argument in open(2)1…
sighingnow
  • 791
  • 5
  • 11
0
votes
1 answer

How do I get Alluxio POSIX to run with version 3 libfuse?

The POSIX documentation says that libfuse version 2.9.3 is required. On my EMR 6.2.0 systems, only 2.9.2 is offered. I have removed the 2.9.2 libfuse and installed the version 3 libfuse. However, Alluxio does not mount fuse as I suppose it is still…
ChanChan Mao
  • 157
  • 8
0
votes
1 answer

Fuse: How do I known the end of the file when write function calling?

When a file is written, the write function can only get offset and buffer, so i can't get the file total size. i want check the file end and do something else, like upload to cloud server. i tryed check with fuse block size 131072, like save…