Lines Matching refs:i32

125     fn find(&mut self, name: &str) -> Result<Arc<LockedFATInode>, i32> {  in find()  argument
155 return Err(-(ENOTDIR as i32)); in find()
246 pub fn new(partition: Arc<Partition>) -> Result<Arc<FATFileSystem>, i32> { in new() argument
276 return Err(-(EINVAL as i32)); in new()
345 pub fn get_fat_entry(&self, cluster: Cluster) -> Result<FATEntry, i32> { in get_fat_entry() argument
440 pub fn get_fat_entry_raw(&self, cluster: Cluster) -> Result<u64, i32> { in get_fat_entry_raw() argument
541 pub fn allocate_cluster(&self, prev_cluster: Option<Cluster>) -> Result<Cluster, i32> { in allocate_cluster() argument
589 pub fn deallocate_cluster_chain(&self, start_cluster: Cluster) -> Result<(), i32> { in deallocate_cluster_chain() argument
600 pub fn deallocate_cluster(&self, cluster: Cluster) -> Result<(), i32> { in deallocate_cluster() argument
613 return Err(-(EFAULT as i32)); in deallocate_cluster()
767 pub fn is_shut_bit_ok(&mut self) -> Result<bool, i32> { in is_shut_bit_ok() argument
790 pub fn is_hard_error_bit_ok(&mut self) -> Result<bool, i32> { in is_hard_error_bit_ok() argument
809 pub fn set_shut_bit_ok(&mut self) -> Result<(), i32> { in set_shut_bit_ok() argument
832 pub fn set_hard_error_bit_ok(&mut self) -> Result<(), i32> { in set_hard_error_bit_ok() argument
850 pub fn umount(&mut self) -> Result<(), i32> { in umount() argument
908 ) -> Result<Cluster, i32> { in get_free_cluster() argument
948 return Err(-(ENOSPC as i32)); in get_free_cluster()
990 return Err(-(ENOSPC as i32)); in get_free_cluster()
1022 return Err(-(ENOSPC as i32)); in get_free_cluster()
1031 pub fn set_entry(&self, cluster: Cluster, fat_entry: FATEntry) -> Result<(), i32> { in set_entry() argument
1131 return Err(-(EPERM as i32)); in set_entry()
1161 pub fn zero_cluster(&self, cluster: Cluster) -> Result<(), i32> { in zero_cluster() argument
1200 ) -> Result<Self, i32> { in new() argument
1228 return Err(-(EINVAL as i32)); in new()
1267 pub fn update_free_count_delta(&mut self, delta: i32) { in update_free_count_delta() argument
1268 self.free_count = (self.free_count as i32 + delta) as u32; in update_free_count_delta()
1291 pub fn flush(&self, partition: &Arc<Partition>) -> Result<(), i32> { in flush() argument
1320 pub fn update(&mut self, partition: Arc<Partition>) -> Result<(), i32> { in update() argument
1351 ) -> Result<usize, i32> { in read_at() argument
1364 return Err(-(EISDIR as i32)); in read_at()
1368 return Err(-(EROFS as i32)); in read_at()
1379 ) -> Result<usize, i32> { in write_at() argument
1390 return Err(-(EISDIR as i32)); in write_at()
1394 return Err(-(EROFS as i32)); in write_at()
1399 fn poll(&self) -> Result<PollStatus, i32> { in poll() argument
1405 return Err(-(EISDIR as i32)); in poll()
1418 ) -> Result<Arc<dyn IndexNode>, i32> { in create() argument
1426 return Err(-(ENOTDIR as i32)); in create()
1438 FileType::SymLink => return Err(-(ENOTSUP as i32)), in create()
1439 _ => return Err(-(EINVAL as i32)), in create()
1443 return Err(-(EROFS as i32)); in create()
1456 fn metadata(&self) -> Result<Metadata, i32> { in metadata() argument
1460 fn list(&self) -> Result<Vec<String>, i32> { in list() argument
1465 return Err(-(ENOTDIR as i32)); in list()
1498 return Err(-(EROFS as i32)); in list()
1503 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, i32> { in find() argument
1509 fn open(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in open() argument
1513 fn close(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in close() argument
1517 fn unlink(&self, name: &str) -> Result<(), i32> { in unlink() argument
1527 return Err(-(ENOTDIR as i32)); in unlink()
1532 return Err(-(EROFS as i32)); in unlink()
1545 fn rmdir(&self, name: &str) -> Result<(), i32> { in rmdir() argument
1555 return Err(-(ENOTDIR as i32)); in rmdir()
1560 return Err(-(EROFS as i32)); in rmdir()
1567 let r: Result<(), i32> = dir.remove(guard.fs.upgrade().unwrap().clone(), name, true); in rmdir()
1572 if r == -(ENOTEMPTY as i32) { in rmdir()
1581 fn get_entry_name(&self, ino: InodeId) -> Result<String, i32> { in get_entry_name() argument
1584 return Err(-(ENOTDIR as i32)); in get_entry_name()
1604 0=>{return Err(-(ENOENT as i32));} in get_entry_name()