Lines Matching refs:map_err
167 .map_err(Error::SeekingFile)?; in convert_copy()
170 .map_err(Error::SeekingFile)?; in convert_copy()
175 .map_err(Error::ReadingData)?; in convert_copy()
176 writer.write(&buf[..nread]).map_err(Error::WritingData)?; in convert_copy()
194 let next_data = match reader.seek_data(offset).map_err(Error::SeekingFile)? { in convert_reader_writer()
201 let next_hole = match reader.seek_hole(next_data).map_err(Error::SeekingFile)? { in convert_reader_writer()
221 let src_size = reader.seek(SeekFrom::End(0)).map_err(Error::SeekingFile)?; in convert_reader()
224 .map_err(Error::SeekingFile)?; in convert_reader()
227 dst_file.set_len(0).map_err(Error::SettingFileSize)?; in convert_reader()
231 let mut dst_writer = QcowFile::new(dst_file, src_size).map_err(Error::QcowError)?; in convert_reader()
240 .map_err(Error::SettingFileSize)?; in convert_reader()
254 let mut src_reader = QcowFile::from(src_file).map_err(Error::QcowError)?; in convert()
270 let disk_size = f.get_len().map_err(Error::SeekingFile)?; in detect_image_type()
271 let orig_seek = f.seek(SeekFrom::Current(0)).map_err(Error::SeekingFile)?; in detect_image_type()
272 f.seek(SeekFrom::Start(0)).map_err(Error::SeekingFile)?; in detect_image_type()
286 .map_err(Error::ReadingHeader)?; in detect_image_type()
288 .map_err(Error::SeekingFile)?; in detect_image_type()
334 Box::new(QcowFile::from(raw_image).map_err(Error::QcowError)?) as Box<dyn DiskFile> in create_disk_file()
339 Box::new(CompositeDiskFile::from_file(raw_image).map_err(Error::CreateCompositeDisk)?) in create_disk_file()
345 Box::new(AndroidSparse::from_file(raw_image).map_err(Error::CreateAndroidSparseDisk)?) in create_disk_file()
394 .map_err(Error::CreateSingleFileDisk) in new()
424 self.inner.fsync().await.map_err(Error::Fsync) in fsync()
436 .map_err(Error::ReadToMem) in read_to_mem()
448 .map_err(Error::WriteFromMem) in write_from_mem()
459 .map_err(Error::Fallocate) in punch_hole()
488 .map_err(Error::WriteFromVec)?; in write_zeroes_at()