Lines Matching refs:fat
83 #include <fs/msdosfs/fat.h>
86 * Fat cache stats.
252 * Rummage around in the FAT cache, maybe we can avoid tromping
253 * thru every FAT entry for the file. And, keep track of how far
340 /* update last file cluster entry in the FAT cache */
347 * Find the closest entry in the FAT cache to the cluster we are looking
372 * Purge the FAT cache in denode dep of all entries relating to file
389 * Update the FAT.
390 * If mirroring the FAT, update all copies, with the first copy as last.
391 * Else update only the current FAT (ignoring the others).
394 * bp - addr of modified FAT block
395 * fatbn - block number relative to begin of filesystem of the modified FAT block.
450 * Now copy the block(s) of the modified FAT to the other copies of
451 * the FAT and write them out. This is faster than reading in the
453 * the FAT for quite a while. Preventing others from accessing it.
454 * To prevent us from going after the FAT quite so much we use
468 printf("%s: copy FAT %d (error=%d)\n",
476 * Write out the first (or current) FAT last.
481 printf("%s: write FAT (error=%d)\n",
494 * cluster number into the appropriate bytes in the FAT.
498 * | 0 1 | | 2 3 | | 4 5 | FAT bytes
549 * Get or Set or 'Get and Set' the cluster'th entry in the FAT.
551 * function - whether to get or set a fat entry
553 * whose FAT is to be manipulated.
558 * the FAT if this is a set function.
560 * This function can also be used to free a cluster by setting the FAT entry
563 * All copies of the FAT are updated if this is a set function. NOTE: If
642 * high order bits of the FAT entry.
665 * fillwith - what to write into FAT entry of last cluster
773 * fillwith - put this value into the FAT entry for the
804 * fillwith - put this value into the FAT entry for the
950 * Read in FAT blocks looking for free clusters. For every free cluster
962 * Mark all clusters in use, we mark the free ones in the FAT scan
970 * through the FAT counting the number of entries whose content is
978 /* Read new FAT block */
1013 * flags - see fat.h
1101 * denode's FAT cache.