Lines Matching refs:SystemError

14 use crate::{libs::casting::DowncastArc, syscall::SystemError, time::TimeSpec};
93 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument
95 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in open()
102 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() argument
104 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in close()
122 ) -> Result<usize, SystemError>; in read_at() argument
139 ) -> Result<usize, SystemError>; in write_at() argument
144 fn poll(&self) -> Result<PollStatus, SystemError>; in poll() argument
150 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() argument
152 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in metadata()
159 fn set_metadata(&self, _metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() argument
161 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in set_metadata()
171 fn resize(&self, _len: usize) -> Result<(), SystemError> { in resize() argument
173 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in resize()
189 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create() argument
209 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create_with_data() argument
211 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in create_with_data()
221 fn link(&self, _name: &str, _other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() argument
223 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in link()
232 fn unlink(&self, _name: &str) -> Result<(), SystemError> { in unlink() argument
234 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in unlink()
243 fn rmdir(&self, _name: &str) -> Result<(), SystemError> { in rmdir() argument
244 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in rmdir()
262 ) -> Result<(), SystemError> { in move_() argument
264 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in move_()
273 fn find(&self, _name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find() argument
275 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in find()
284 fn get_entry_name(&self, _ino: InodeId) -> Result<String, SystemError> { in get_entry_name() argument
286 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in get_entry_name()
295 fn get_entry_name_and_metadata(&self, ino: InodeId) -> Result<(String, Metadata), SystemError> { in get_entry_name_and_metadata() argument
309 fn ioctl(&self, _cmd: u32, _data: usize) -> Result<usize, SystemError> { in ioctl() argument
311 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in ioctl()
322 fn list(&self) -> Result<Vec<String>, SystemError>; in list() argument
326 fn mount(&self, _fs: Arc<dyn FileSystem>) -> Result<Arc<MountFS>, SystemError> { in mount() argument
327 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in mount()
333 fn truncate(&self, _len: usize) -> Result<(), SystemError> { in truncate() argument
334 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP); in truncate()
338 fn sync(&self) -> Result<(), SystemError> { in sync() argument
362 pub fn lookup(&self, path: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in lookup() argument
377 ) -> Result<Arc<dyn IndexNode>, SystemError> { in lookup_follow_symlink() argument
379 return Err(SystemError::ENOTDIR); in lookup_follow_symlink()
396 return Err(SystemError::ENOTDIR); in lookup_follow_symlink()
430 ::core::str::from_utf8(&content[..len]).map_err(|_| SystemError::ENOTDIR)?, in lookup_follow_symlink()