Lines Matching refs:SystemError

21     syscall::SystemError,
115 ) -> Result<(), SystemError> { in do_migrate() argument
133 fn migrate_virtual_filesystem(new_fs: Arc<dyn FileSystem>) -> Result<(), SystemError> { in migrate_virtual_filesystem() argument
179 let fatfs: Result<Arc<FATFileSystem>, SystemError> = FATFileSystem::new(partiton); in mount_root_fs()
203 pub fn do_mkdir(path: &str, _mode: FileMode) -> Result<u64, SystemError> { in do_mkdir() argument
206 return Err(SystemError::ENAMETOOLONG); in do_mkdir()
209 let inode: Result<Arc<dyn IndexNode>, SystemError> = ROOT_INODE().lookup(path); in do_mkdir()
214 if errno == SystemError::ENOENT { in do_mkdir()
232 pub fn do_remove_dir(path: &str) -> Result<u64, SystemError> { in do_remove_dir() argument
235 return Err(SystemError::ENAMETOOLONG); in do_remove_dir()
238 let inode: Result<Arc<dyn IndexNode>, SystemError> = ROOT_INODE().lookup(path); in do_remove_dir()
243 if errno == SystemError::ENOENT { in do_remove_dir()
244 return Err(SystemError::ENOENT); in do_remove_dir()
253 return Err(SystemError::ENOTDIR); in do_remove_dir()
258 return Err(SystemError::ENOTDIR); in do_remove_dir()
268 pub fn do_unlink_at(path: &str, _mode: FileMode) -> Result<u64, SystemError> { in do_unlink_at() argument
271 return Err(SystemError::ENAMETOOLONG); in do_unlink_at()
274 let inode: Result<Arc<dyn IndexNode>, SystemError> = ROOT_INODE().lookup(path); in do_unlink_at()
279 if errno == SystemError::ENOENT { in do_unlink_at()
280 return Err(SystemError::ENOENT); in do_unlink_at()
285 return Err(SystemError::EPERM); in do_unlink_at()
293 return Err(SystemError::ENOTDIR); in do_unlink_at()