Lines Matching refs:Fs
30 struct Fs_t *Fs; /* Filesystem that this fat file belongs to */
68 return getUnbufferedFile(Stream)->Fs;
87 Fs_t *Fs = This->Fs;
99 clus_size = Fs->cluster_size * Fs->sector_size;
106 r = fsPreallocateClusters(Fs, neededPrealloc - This->preallocatedClusters);
204 n = fatDecode(This->Fs, n);
208 } while (n <= This->Fs->last_fat && n != 1);
227 Fs_t *Fs = This->Fs;
230 clus_size = Fs->cluster_size * Fs->sector_size;
243 NewCluNr = get_next_free_cluster(This->Fs, 1);
251 fatAllocate(This->Fs, NewCluNr, Fs->end_fat);
273 NewCluNr = fatDecode(This->Fs, AbsCluNr);
281 if (NewCluNr > Fs->last_fat && mode == MT_WRITE){
283 NewCluNr = get_next_free_cluster(This->Fs, AbsCluNr);
288 fatAppend(This->Fs, AbsCluNr, NewCluNr);
291 if (CurCluNr < RelCluNr && NewCluNr > Fs->last_fat){
316 Fs->num_clus) {
321 *res = sectorsToBytes((Stream_t*)Fs,
322 (This->PreviousAbsCluNr-2) * Fs->cluster_size +
323 Fs->clus_start) + offset;
331 Fs_t *Fs = This->Fs;
333 if(Fs->dir_len * Fs->sector_size < (size_t) where) {
339 maximize(*len, Fs->dir_len * Fs->sector_size - where);
343 *res = sectorsToBytes((Stream_t*)Fs, Fs->dir_start) + where;
356 Stream_t *Disk = This->Fs->Next;
370 Stream_t *Disk = This->Fs->Next;
475 Fs_t *Fs = This->Fs;
476 fsPreallocateClusters(Fs, -This->preallocatedClusters);
539 return getAbsCluNr(This) ^ (long) This->Fs;
555 return This->Fs != This2->Fs ||
584 Pattern.Fs = This;
615 File->Fs = This;
655 Fs_t *Fs = (Fs_t *) GetFs(Dir);
656 size = Fs->dir_len * Fs->sector_size;