Home
last modified time | relevance | path

Searched refs:start_cluster (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs553 let start_cluster: Cluster = match self.bpb.fat_type { in allocate_cluster() localVariable
569 let free_cluster: Cluster = match self.get_free_cluster(start_cluster, end_cluster) { in allocate_cluster()
571 Err(_) if start_cluster.cluster_num > RESERVED_CLUSTERS as u64 => { in allocate_cluster()
599 pub fn deallocate_cluster_chain(&self, start_cluster: Cluster) -> Result<(), SystemError> { in deallocate_cluster_chain()
600 let clusters: Vec<Cluster> = self.clusters(start_cluster); in deallocate_cluster_chain()
736 pub fn clusters(&self, start_cluster: Cluster) -> Vec<Cluster> { in clusters()
737 return self.cluster_iter(start_cluster).collect(); in clusters()
743 pub fn num_clusters_chain(&self, start_cluster: Cluster) -> u64 { in num_clusters_chain()
745 .cluster_iter(start_cluster) in num_clusters_chain()
751 fn cluster_iter(&self, start_cluster: Cluster) -> ClusterIter { in cluster_iter()
[all …]
Dentry.rs281 let start_cluster: u64 = self.size() / fs.bytes_per_cluster(); in ensure_len() localVariable
282 let start_cluster: Cluster = fs in ensure_len() localVariable
283 .get_cluster_by_relative(self.first_cluster, start_cluster as usize) in ensure_len()
287 fs.cluster_bytes_offset(start_cluster) + self.size() % fs.bytes_per_cluster(); in ensure_len()
297 if start_cluster != end_cluster { in ensure_len()
1472 let start_cluster: Cluster = self.current_cluster; in get_dir_entry() localVariable
1531 (start_cluster, start_offset), in get_dir_entry()