Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs94 let mut current_cluster = if let Some(c) = in read() localVariable
114 if let Some(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster).ok() { in read()
115 current_cluster = c; in read()
132 let offset = fs.cluster_bytes_offset(current_cluster) + in_cluster_offset; in read()
169 let mut current_cluster: Cluster = if let Some(c) = in write() localVariable
185 if let Some(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster).ok() { in write()
186 current_cluster = c; in write()
199 let offset = fs.cluster_bytes_offset(current_cluster) + in_cluster_bytes_offset; in write()
272 let mut current_cluster: Cluster = last_cluster; in ensure_len() localVariable
274 current_cluster = fs.allocate_cluster(Some(current_cluster))?; in ensure_len()
[all …]
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()
Dfs.rs352 let current_cluster = cluster.cluster_num; in get_fat_entry() localVariable
353 if current_cluster < 2 { in get_fat_entry()
387 if (current_cluster & 1) > 0 { in get_fat_entry()
402 parent_cluster: current_cluster, in get_fat_entry()
418 parent_cluster: current_cluster, in get_fat_entry()
426 _n if (current_cluster >= 0x0ffffff7 && current_cluster <= 0x0fffffff) => { in get_fat_entry()
428 …et fat entry: current cluster number [{}] is not an allocatable cluster number.", current_cluster); in get_fat_entry()
436 parent_cluster: current_cluster, in get_fat_entry()
451 let current_cluster = cluster.cluster_num; in get_fat_entry_raw() localVariable
480 entry = if (current_cluster & 0x0001) > 0 { in get_fat_entry_raw()
[all …]