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
//! High-level Rust API for creating ext4 filesystems.
//!
//! This crate provides a safe Rust interface for formatting storage devices
//! as ext4 filesystems using the lwext4 library.
//!
//! # Example
//!
//! ```no_run
//! use ext4_mkfs::{mkfs, MkfsConfig, IoBlockDevice, FsType};
//! use std::fs::OpenOptions;
//!
//! // Open a file as a block device
//! let file = OpenOptions::new()
//! .read(true)
//! .write(true)
//! .open("disk.img")
//! .unwrap();
//!
//! // Create a block device wrapper (512-byte sectors, 100MB total)
//! let device = IoBlockDevice::new(file, 512, 100 * 1024 * 1024);
//!
//! // Format as ext4
//! let config = MkfsConfig::new()
//! .fs_type(FsType::Ext4)
//! .block_size(4096)
//! .label("my_volume");
//!
//! mkfs(device, config).unwrap();
//! ```
pub use ;
pub use ;
pub use ;