Searched refs:BlockCacheError (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/driver/block/cache/ |
H A D | cached_block_device.rs | 10 BlockCacheError, BLOCK_SIZE, BLOCK_SIZE_LOG, CACHE_THRESHOLD, 20 unsafe fn mapper() -> Result<&'static mut LockedCacheMapper, BlockCacheError> { in mapper() 24 None => return Err(BlockCacheError::StaticParameterError), in mapper() 30 unsafe fn space() -> Result<&'static mut LockedCacheSpace, BlockCacheError> { in space() 34 None => return Err(BlockCacheError::StaticParameterError), in space() 65 ) -> Result<usize, BlockCacheError> { in read() argument 89 fn check_able_to_read(block_iter: BlockIter) -> Result<Vec<CacheBlockAddr>, BlockCacheError> { in check_able_to_read() argument 110 return Err(BlockCacheError::BlockFaultError(fail_ans)); in check_able_to_read() 130 ) -> Result<usize, BlockCacheError> { in read_one_block() argument 144 pub fn insert(f_data_vec: Vec<FailData>, data: &[u8]) -> Result<usize, BlockCacheError> { in insert() argument [all …]
|
H A D | cache_block.rs | 5 use super::{BlockCacheError, BLOCK_SIZE}; 43 pub fn data(&self, buf: &mut [u8]) -> Result<usize, BlockCacheError> { in data() argument 45 return Err(BlockCacheError::BlockSizeError); in data()
|
H A D | mod.rs | 14 pub enum BlockCacheError { enum
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | block_device.rs | 13 block::cache::{cached_block_device::BlockCache, BlockCacheError, BLOCK_SIZE}, 384 BlockCacheError::StaticParameterError => { in cache_read() 389 BlockCacheError::BlockFaultError(fail_vec) => { in cache_read()
|