Searched refs:bytes_per_cluster (Results 1 – 2 of 2) sorted by relevance
91 let start_cluster_number: u64 = offset / fs.bytes_per_cluster(); in read()104 let mut in_cluster_offset: u64 = offset % fs.bytes_per_cluster(); in read()112 if in_cluster_offset >= fs.bytes_per_cluster() { in read()115 in_cluster_offset %= fs.bytes_per_cluster(); in read()125 (fs.bytes_per_cluster() - in_cluster_offset) as usize, in read()166 let start_cluster_num = offset / fs.bytes_per_cluster(); in write()177 let mut in_cluster_bytes_offset: u64 = offset % fs.bytes_per_cluster(); in write()184 if in_cluster_bytes_offset >= fs.bytes_per_cluster() { in write()187 in_cluster_bytes_offset = in_cluster_bytes_offset % fs.bytes_per_cluster(); in write()194 (fs.bytes_per_cluster() - in_cluster_bytes_offset) as usize, in write()[all …]
335 pub fn bytes_per_cluster(&self) -> u64 { in bytes_per_cluster() method1163 let zeros: Vec<u8> = vec![0u8; self.bytes_per_cluster() as usize]; in zero_cluster()