pub mod cache;
pub mod dispatcher;
pub mod error;
pub mod fuse;
pub mod passthrough;
pub mod server;
pub use cache::{NegativeCache, NegativeCacheConfig, NegativeCacheStats};
pub use dispatcher::{DispatcherConfig, FuseDispatcher, RequestContext, ResponseBuilder};
pub use error::{FsError, Result};
pub use fuse::{FuseAttr, FuseInHeader, FuseOpcode, FuseOutHeader, StatFs};
pub use passthrough::{DirEntry, FileType, PassthroughConfig, PassthroughFs};
pub use server::FsServer;
#[derive(Debug, Clone)]
pub struct FsConfig {
pub tag: String,
pub source: String,
pub num_threads: usize,
pub writeback_cache: bool,
pub cache_timeout: u64,
}
impl Default for FsConfig {
fn default() -> Self {
Self {
tag: "arcbox".to_string(),
source: String::new(),
num_threads: 4,
writeback_cache: true,
cache_timeout: 1,
}
}
}