Lines Matching refs:Fs
30 struct Fs_t *Fs; /* Filesystem that this fat file belongs to */ member
68 return getUnbufferedFile(Stream)->Fs; in getFs()
87 Fs_t *Fs = This->Fs; in recalcPreallocSize() local
99 clus_size = Fs->cluster_size * Fs->sector_size; in recalcPreallocSize()
106 r = fsPreallocateClusters(Fs, neededPrealloc - This->preallocatedClusters); in recalcPreallocSize()
204 n = fatDecode(This->Fs, n); in printFat()
208 } while (n <= This->Fs->last_fat && n != 1); in printFat()
228 clusSize = This->Fs->cluster_size * This->Fs->sector_size; in printFatWithOffset()
232 n = fatDecode(This->Fs, n); in printFatWithOffset()
236 if(n > This->Fs->last_fat) in printFatWithOffset()
255 Fs_t *Fs = This->Fs; in normal_map() local
258 clus_size = Fs->cluster_size * Fs->sector_size; in normal_map()
271 NewCluNr = get_next_free_cluster(This->Fs, 1); in normal_map()
279 fatAllocate(This->Fs, NewCluNr, Fs->end_fat); in normal_map()
301 NewCluNr = fatDecode(This->Fs, AbsCluNr); in normal_map()
309 if (NewCluNr > Fs->last_fat && mode == MT_WRITE){ in normal_map()
311 NewCluNr = get_next_free_cluster(This->Fs, AbsCluNr); in normal_map()
316 fatAppend(This->Fs, AbsCluNr, NewCluNr); in normal_map()
319 if (CurCluNr < RelCluNr && NewCluNr > Fs->last_fat){ in normal_map()
344 Fs->num_clus) { in normal_map()
349 *res = sectorsToBytes((Stream_t*)Fs, in normal_map()
350 (This->PreviousAbsCluNr-2) * Fs->cluster_size + in normal_map()
351 Fs->clus_start) + offset; in normal_map()
359 Fs_t *Fs = This->Fs; in root_map() local
361 if(Fs->dir_len * Fs->sector_size < (size_t) where) { in root_map()
367 sizemaximize(*len, Fs->dir_len * Fs->sector_size - where); in root_map()
371 *res = sectorsToBytes((Stream_t*)Fs, Fs->dir_start) + where; in root_map()
384 Stream_t *Disk = This->Fs->Next; in read_file()
398 Stream_t *Disk = This->Fs->Next; in write_file()
504 Fs_t *Fs = This->Fs; in free_file() local
505 fsPreallocateClusters(Fs, -This->preallocatedClusters); in free_file()
569 return getAbsCluNr(This) ^ (long) This->Fs; in func1()
585 return This->Fs != This2->Fs || in comp()
614 Pattern.Fs = This; in _internalFileOpen()
645 File->Fs = This; in _internalFileOpen()
685 Fs_t *Fs = (Fs_t *) GetFs(Dir); in OpenRoot() local
686 size = Fs->dir_len * Fs->sector_size; in OpenRoot()