• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/usr.sbin/makefs/msdos/

Lines Matching defs:cluster

117  * Map the logical cluster number of a file into a physical disk sector
121 * findcn - file relative cluster whose filesystem relative cluster number
125 * cnp - address of where to place the filesystem relative cluster number.
130 * This function has one side effect. If the requested file relative cluster
156 * clusters. If the cluster number is beyond the end of the root
182 * All other files do I/O in cluster sized blocks
231 * Force the special cluster numbers
232 * to be the same for all cluster sizes
256 /* update last file cluster entry in the FAT cache */
262 * Find the closest entry in the FAT cache to the cluster we are looking
287 * relative cluster frcn and beyond.
369 * cluster number into the appropriate bytes in the FAT.
379 * cluster n cluster n+1
414 clusterfree(struct msdosfsmount *pmp, u_long cluster, u_long *oldcnp)
419 error = fatentry(FAT_GET_AND_SET, pmp, cluster, &oldcn, MSDOSFSFREE);
423 * If the cluster was successfully marked free, then update
425 * bit in the "in use" cluster bit map.
427 usemap_free(pmp, cluster);
434 * Get or Set or 'Get and Set' the cluster'th entry in the FAT.
439 * cn - which cluster is of interest
441 * cluster'th entry if this is a get function
442 * newcontents - the new value to be written into the cluster'th element of
445 * This function can also be used to free a cluster by setting the FAT entry
446 * for a cluster to 0.
449 * fatentry() marks a cluster as free it does not update the inusemap in
478 * If they asked us to return a cluster number but didn't tell us
490 * Be sure the requested cluster is in the filesystem.
553 * Update a contiguous cluster chain
556 * start - first cluster of chain
558 * fillwith - what to write into FAT entry of last cluster
625 * Check the length of a free cluster chain starting at start.
679 * start - start of cluster chain.
682 * last allocated cluster.
683 * retcluster - put the first allocated cluster's number here.
708 printf("clusteralloc(): allocated cluster chain at %lu (%lu clusters)\n",
722 * start - preferred start of cluster chain.
725 * last allocated cluster.
726 * retcluster - put the first allocated cluster's number here.
808 * containing the cluster chain to be freed.
809 * startcluster - number of the 1st cluster in the chain of clusters to be
813 freeclusterchain(struct msdosfsmount *pmp, u_long cluster)
820 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) {
821 byteoffset = FATOFS(pmp, cluster);
833 usemap_free(pmp, cluster);
837 if (cluster & 1) {
838 cluster = readcn >> 4;
842 cluster = readcn;
849 cluster = getushort(bp->b_data + bo);
853 cluster = getulong(bp->b_data + bo);
855 (MSDOSFSFREE & FAT32_MASK) | (cluster & ~FAT32_MASK));
858 cluster &= pmp->pm_fatmask;
859 if ((cluster | ~pmp->pm_fatmask) >= CLUST_RSRVD)
860 cluster |= pmp->pm_fatmask;
868 * Read in FAT blocks looking for free clusters. For every free cluster
939 * Allocate a new cluster and chain it onto the end of the file.
945 * ncp - where to put cluster number of the first newly allocated cluster
946 * If this pointer is 0, do not return the cluster number.
975 * If the "file's last cluster" cache entry is empty, and the file
992 * Allocate a new cluster chain and cat onto the end of the
1011 * Give them the filesystem relative cluster number if they want
1034 * Update the "last cluster of the file" entry in the