1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Filesystem backend support.
//!
//! This module re-exports the `DynFileSystem` trait from the devices crate,
//! providing an object-safe filesystem interface for custom implementations.
//!
//! # Example
//!
//! ```rust,no_run
//! use std::ffi::CStr;
//! use std::io;
//! use std::time::Duration;
//! use msb_krun::backends::fs::{DynFileSystem, Context, Entry, FsOptions};
//!
//! struct MyFileSystem {
//! // ... your implementation
//! }
//!
//! impl DynFileSystem for MyFileSystem {
//! fn init(&self, capable: FsOptions) -> io::Result<FsOptions> {
//! Ok(FsOptions::empty())
//! }
//!
//! fn lookup(&self, ctx: Context, parent: u64, name: &CStr) -> io::Result<Entry> {
//! // Implement file lookup
//! todo!()
//! }
//!
//! // ... implement other methods as needed
//! }
//! ```
//--------------------------------------------------------------------------------------------------
// Re-Exports
//--------------------------------------------------------------------------------------------------
pub use ;
pub use DynFileSystem;
pub use ;