zargony / fuse-rs

Rust library for filesystems in userspace (FUSE)
MIT License
1.05k stars 131 forks source link

Add example that forwards calls to the real filesystem #141

Open vi opened 4 years ago

vi commented 4 years ago

libfuse has fusexmp.c, so fuse-rs should be examples/xmp.rs.

Supposed to just mirror root filesystem using libstd's std::fs::* operations.

The example is rather crude and not all operations are supported, but a simple cargo init ; cargo run test works on that filesystem.

P.S. Only now stumbled upon https://github.com/wfraser/fuse-mt/tree/master/example.