Lines Matching refs:fs
100 fs: Weak<FATFileSystem>, field
115 self.metadata.size = d.size(&self.fs.upgrade().unwrap().clone()) as i64; in update_metadata()
134 d.find_entry(name, None, None, self.fs.upgrade().unwrap())?; in find()
138 self.fs.upgrade().unwrap(), in find()
150 self.fs in find()
162 fs: Arc<FATFileSystem>, in new()
176 fs: Arc::downgrade(&fs), in new()
182 blk_size: fs.bpb.bytes_per_sector as usize, in new()
183 blocks: if let FATType::FAT32(_) = fs.bpb.fat_type { in new()
184 fs.bpb.total_sectors_32 as usize in new()
186 fs.bpb.total_sectors_16 as usize in new()
295 fs: Weak::default(), in new()
332 root_guard.fs = Arc::downgrade(&result); in new()
754 fs: self, in cluster_iter()
1366 &guard.fs.upgrade().unwrap(), in read_at()
1391 let fs: &Arc<FATFileSystem> = &guard.fs.upgrade().unwrap(); in write_at() localVariable
1395 let r = f.write(fs, &buf[0..len], offset as u64); in write_at()
1430 let fs: &Arc<FATFileSystem> = &guard.fs.upgrade().unwrap(); in create() localVariable
1438 d.create_file(name, fs)?; in create()
1442 d.create_dir(name, fs)?; in create()
1456 fn fs(&self) -> Arc<dyn FileSystem> { in fs() method
1457 return self.0.lock().fs.upgrade().unwrap(); in fs()
1469 let fs: &Arc<FATFileSystem> = &guard.fs.upgrade().unwrap(); in resize() localVariable
1488 file.write(fs, &buf[0..write_size], offset as u64)?; in resize()
1493 file.truncate(fs, len as u64)?; in resize()
1516 let dir_iter: FATDirIter = dir.to_iter(guard.fs.upgrade().unwrap()); in list()
1530 guard.fs.upgrade().unwrap(), in list()
1582 dir.check_existence(name, Some(false), guard.fs.upgrade().unwrap())?; in unlink()
1585 let r = dir.remove(guard.fs.upgrade().unwrap().clone(), name, true); in unlink()
1609 dir.check_existence(name, Some(true), guard.fs.upgrade().unwrap())?; in rmdir()
1613 dir.remove(guard.fs.upgrade().unwrap().clone(), name, true); in rmdir()
1688 fs: &'a FATFileSystem, field
1701 let entry: Option<FATEntry> = self.fs.get_fat_entry(c).ok(); in next()