Struct easy_fs::EasyFileSystem
source · [−]pub struct EasyFileSystem<T: CacheManager, F: CacheManager> {
used_marker: PhantomData<T>,
pub block_device: Arc<dyn BlockDevice>,
pub fat: Fat<F>,
pub data_area_start_block: u32,
pub root_clus: u32,
pub sec_per_clus: u8,
pub byts_per_sec: u16,
ino_cnt: Mutex<u64>,
}
Fields
used_marker: PhantomData<T>
block_device: Arc<dyn BlockDevice>
Partition/Device the FAT32 is hosted on.
fat: Fat<F>
FAT information
data_area_start_block: u32
The first data sector beyond the root directory
root_clus: u32
This is set to the cluster number of the first cluster of the root directory, usually 2 but not required to be 2.
sec_per_clus: u8
sector per cluster, usually 8 for SD card
byts_per_sec: u16
Bytes per sector, 512 for SD card
ino_cnt: Mutex<u64>
“New” inode number count
Implementations
n is the ordinal number of the cluster.
Open the filesystem object.
Open the root directory