Home
last modified time | relevance | path

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

/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs607 let start_cluster: Cluster = match self.bpb.fat_type { in allocate_cluster() localVariable
620 let free_cluster: Cluster = match self.get_free_cluster(start_cluster, end_cluster) { in allocate_cluster()
622 Err(_) if start_cluster.cluster_num > RESERVED_CLUSTERS as u64 => { in allocate_cluster()
650 pub fn deallocate_cluster_chain(&self, start_cluster: Cluster) -> Result<(), SystemError> { in deallocate_cluster_chain()
651 let clusters: Vec<Cluster> = self.clusters(start_cluster); in deallocate_cluster_chain()
780 pub fn clusters(&self, start_cluster: Cluster) -> Vec<Cluster> { in clusters()
781 return self.cluster_iter(start_cluster).collect(); in clusters()
787 pub fn num_clusters_chain(&self, start_cluster: Cluster) -> u64 { in num_clusters_chain()
789 .cluster_iter(start_cluster) in num_clusters_chain()
795 fn cluster_iter(&self, start_cluster: Cluster) -> ClusterIter { in cluster_iter()
[all …]
H A Dentry.rs276 let start_cluster: u64 = self.size() / fs.bytes_per_cluster(); in ensure_len() localVariable
277 let start_cluster: Cluster = fs in ensure_len() localVariable
278 .get_cluster_by_relative(self.first_cluster, start_cluster as usize) in ensure_len()
282 fs.cluster_bytes_offset(start_cluster) + self.size() % fs.bytes_per_cluster(); in ensure_len()
292 if start_cluster != end_cluster { in ensure_len()
1513 let start_cluster: Cluster = self.current_cluster; in get_dir_entry() localVariable
1572 (start_cluster, start_offset), in get_dir_entry()