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()
268 let mut current_cluster: Cluster = last_cluster; in ensure_len() localVariable
270 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.rs414 let current_cluster = cluster.cluster_num; in get_fat_entry() localVariable
415 if current_cluster < 2 { in get_fat_entry()
445 if (current_cluster & 1) > 0 { in get_fat_entry()
460 parent_cluster: current_cluster, in get_fat_entry()
476 parent_cluster: current_cluster, in get_fat_entry()
484 _n if (0x0ffffff7..=0x0fffffff).contains(&current_cluster) => { in get_fat_entry()
486 …et fat entry: current cluster number [{}] is not an allocatable cluster number.", current_cluster); in get_fat_entry()
494 parent_cluster: current_cluster, in get_fat_entry()
509 let current_cluster = cluster.cluster_num; in get_fat_entry_raw() localVariable
535 entry = if (current_cluster & 0x0001) > 0 { in get_fat_entry_raw()
[all …]