Home
last modified time | relevance | path

Searched refs:StorageError (Results 1 – 7 of 7) sorted by relevance

/bootable/libbootloader/gbl/efi/src/
Derror.rs22 use gbl_storage::StorageError;
60 StorageError(StorageError),
/bootable/libbootloader/gbl/libstorage/src/
Dmulti_blocks.rs15 use crate::{AsBlockDevice, BlockIo, Partition, Result, StorageError};
36 .map_err(|v| StorageError::FailedGettingBlockDevices(v)) in for_each_until()
50 fn sync_gpt_all(&mut self, f: &mut dyn FnMut(&mut dyn AsBlockDevice, u64, StorageError)) { in sync_gpt_all() argument
64 let mut res = Err(StorageError::NotExist); in check_part()
67 Ok(_) if res.is_ok() => Err(StorageError::PartitionNotUnique), in check_part()
70 res.err() == Some(StorageError::PartitionNotUnique) in check_part()
114 let mut res: Result<R> = Err(StorageError::BlockDeviceNotFound); in until_ok()
129 _ => Err(StorageError::BlockDeviceNotFound), in with_id()
Dnon_blocking.rs16 is_aligned, is_buffer_aligned, BlockInfo, BlockIo, BlockIoError, Result, StorageError,
349 true => Err(StorageError::IoAborted), in do_sync()
431 true => Err(StorageError::NotReady), in check_busy()
458 let buffer_raw = buffer.take().ok_or(StorageError::InvalidInput)?; in write()
495 let buffer_raw = buffer.take().ok_or(StorageError::InvalidInput)?; in read()
513 None => Err(StorageError::NotExist), in take_io_buffer()
516 _ => Err(StorageError::NotReady), in take_io_buffer()
Dgpt.rs15 use crate::{aligned_subslice, read, write_bytes_mut, BlockIo, Result, StorageError};
92 _ => return Err(StorageError::InvalidInput), // Not enough space in `buffer`. in name_to_str()
148 Ok(self.num_valid_entries.ok_or_else(|| StorageError::InvalidInput)?.get()) in num_valid_entries()
178 return Err(StorageError::InvalidInput); in new_from_buffer()
241 Err(StorageError::NotExist) in find_partition()
326 return Err(StorageError::NoValidGpt); in load_and_sync()
406 false => Err(StorageError::OutOfRange), in check_gpt_rw_params()
Dlib.rs120 pub type Result<T> = core::result::Result<T, StorageError>;
124 pub enum StorageError { enum
140 impl From<safemath::Error> for StorageError { implementation
146 impl From<core::num::TryFromIntError> for StorageError { implementation
152 impl From<BlockIoError> for StorageError { implementation
158 impl core::fmt::Display for StorageError { implementation
522 let mut res: Result<R> = Err(StorageError::BlockIoNotProvided); in with_partitioned_scratch()
526 return Err(StorageError::ScratchTooSmall); in with_partitioned_scratch()
562 false => Err(StorageError::OutOfRange), in check_range()
/bootable/libbootloader/gbl/libgbl/src/
Derror.rs21 use gbl_storage::StorageError;
150 StorageError(StorageError),
Dlib.rs546 .map_err(|e: gbl_storage::StorageError| IntegrationError::StorageError(e))? in zircon_load_and_boot()