Searched refs:bytes_per_cluster (Results 1 – 2 of 2) sorted by relevance
92 let start_cluster_number: u64 = offset / fs.bytes_per_cluster(); in read()105 let mut in_cluster_offset: u64 = offset % fs.bytes_per_cluster(); in read()113 if in_cluster_offset >= fs.bytes_per_cluster() { in read()116 in_cluster_offset %= fs.bytes_per_cluster(); in read()126 (fs.bytes_per_cluster() - in_cluster_offset) as usize, in read()165 let start_cluster_num = offset / fs.bytes_per_cluster(); in write()175 let mut in_cluster_bytes_offset: u64 = offset % fs.bytes_per_cluster(); in write()182 if in_cluster_bytes_offset >= fs.bytes_per_cluster() { in write()185 in_cluster_bytes_offset %= fs.bytes_per_cluster(); in write()192 (fs.bytes_per_cluster() - in_cluster_bytes_offset) as usize, in write()[all …]
402 pub fn bytes_per_cluster(&self) -> u64 { in bytes_per_cluster() method1208 let zeros: Vec<u8> = vec![0u8; self.bytes_per_cluster() as usize]; in zero_cluster()