Lines Matching refs:disks
96 fn new(mut disks: Vec<ComponentDiskPart>) -> Result<CompositeDiskFile> { in new()
97 disks.sort_by(|d1, d2| d1.offset.cmp(&d2.offset)); in new()
98 let contiguous_err = disks in new()
113 component_disks: disks, in new()
136 let mut disks: Vec<ComponentDiskPart> = proto in from_file() localVariable
153 disks.sort_by(|d1, d2| d1.offset.cmp(&d2.offset)); in from_file()
154 for i in 0..(disks.len() - 1) { in from_file()
155 let length = disks[i + 1].offset - disks[i].offset; in from_file()
157 let text = format!("Two disks at offset {}", disks[i].offset); in from_file()
160 if let Some(disk) = disks.get_mut(i) { in from_file()
167 let num_disks = disks.len(); in from_file()
168 if let Some(last_disk) = disks.get_mut(num_disks - 1) { in from_file()
186 CompositeDiskFile::new(disks) in from_file()
279 let disks = self.disks_in_range(&range); in punch_hole() localVariable
280 for disk in disks { in punch_hole()
300 let disks = self.disks_in_range(&range); in allocate() localVariable
301 for disk in disks { in allocate()