Skip to main content

btrfs_fuse/
lib.rs

1//! `btrfs-fuse` library: a thin `fuser::Filesystem` adapter on top of
2//! the [`btrfs_fs`] crate.
3//!
4//! All filesystem semantics (lookup, readdir, read, xattr, etc.) live in
5//! [`btrfs_fs`]. This crate adds the FUSE protocol mapping: inode-number
6//! translation, [`btrfs_fs::Stat`] → `fuser::FileAttr` conversion, and
7//! the `fuser::Filesystem` trait impl. Embedders that don't need FUSE
8//! should depend on [`btrfs_fs`] directly.
9
10#![warn(clippy::pedantic)]
11#![allow(
12    clippy::missing_errors_doc,
13    clippy::missing_panics_doc,
14    clippy::module_name_repetitions
15)]
16
17pub mod args;
18pub mod fs;
19pub mod inode;
20pub mod ioctl;
21pub mod run;
22
23pub use fs::BtrfsFuse;