Home
last modified time | relevance | path

Searched refs:current_cluster (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/filesystem/fat/
H A Dentry.rs94 let mut current_cluster = if let Some(c) = in read() localVariable
114 if let Ok(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster) { in read()
115 current_cluster = c; in read()
132 let offset = fs.cluster_bytes_offset(current_cluster) + in_cluster_offset; in read()
167 let mut current_cluster: Cluster = if let Some(c) = in write() localVariable
183 if let Ok(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster) { in write()
184 current_cluster = c; in write()
197 let offset = fs.cluster_bytes_offset(current_cluster) + in_cluster_bytes_offset; in write()
267 let mut current_cluster: Cluster = last_cluster; in ensure_len() localVariable
269 current_cluster = fs.allocate_cluster(Some(current_cluster))?; in ensure_len()
[all …]
H A Dbpb.rs169 let current_cluster = cluster.cluster_num; in get_fat_bytes_offset() localVariable
172 FATType::FAT12(_) => current_cluster + (current_cluster / 2), in get_fat_bytes_offset()
173 FATType::FAT16(_) => current_cluster * 2, in get_fat_bytes_offset()
174 FATType::FAT32(_) => current_cluster * 4, in get_fat_bytes_offset()
H A Dfs.rs413 let current_cluster = cluster.cluster_num; in get_fat_entry() localVariable
414 if current_cluster < 2 { in get_fat_entry()
444 if (current_cluster & 1) > 0 { in get_fat_entry()
459 parent_cluster: current_cluster, in get_fat_entry()
475 parent_cluster: current_cluster, in get_fat_entry()
483 _n if (0x0ffffff7..=0x0fffffff).contains(&current_cluster) => { in get_fat_entry()
485 …et fat entry: current cluster number [{}] is not an allocatable cluster number.", current_cluster); in get_fat_entry()
493 parent_cluster: current_cluster, in get_fat_entry()
508 let current_cluster = cluster.cluster_num; in get_fat_entry_raw() localVariable
534 entry = if (current_cluster & 0x0001) > 0 { in get_fat_entry_raw()
[all …]