• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/fs/msdosfs/

Lines Matching defs:cluster

109  * Map the logical cluster number of a file into a physical disk sector
113 * findcn - file relative cluster whose filesystem relative cluster number
117 * cnp - address of where to place the filesystem relative cluster number.
122 * This function has one side effect. If the requested file relative cluster
150 * clusters. If the cluster number is beyond the end of the root
176 * All other files do I/O in cluster sized blocks
224 * Force the special cluster numbers
225 * to be the same for all cluster sizes
249 /* update last file cluster entry in the FAT cache */
255 * Find the closest entry in the FAT cache to the cluster we are looking
282 * relative cluster frcn and beyond.
366 * cluster number into the appropriate bytes in the FAT.
376 * cluster n cluster n+1
421 clusterfree(struct msdosfsmount *pmp, u_long cluster, u_long *oldcnp)
426 error = fatentry(FAT_GET_AND_SET, pmp, cluster, &oldcn, MSDOSFSFREE);
430 * If the cluster was successfully marked free, then update
432 * bit in the "in use" cluster bit map.
435 usemap_free(pmp, cluster);
443 * Get or Set or 'Get and Set' the cluster'th entry in the FAT.
448 * cn - which cluster is of interest
450 * cluster'th entry if this is a get function
451 * newcontents - the new value to be written into the cluster'th element of
454 * This function can also be used to free a cluster by setting the FAT entry
455 * for a cluster to 0.
458 * fatentry() marks a cluster as free it does not update the inusemap in
487 * If they asked us to return a cluster number but didn't tell us
499 * Be sure the requested cluster is in the filesystem.
561 * Update a contiguous cluster chain
564 * start - first cluster of chain
566 * fillwith - what to write into FAT entry of last cluster
632 * Check the length of a free cluster chain starting at start.
688 * start - start of cluster chain.
691 * last allocated cluster.
692 * retcluster - put the first allocated cluster's number here.
719 printf("clusteralloc(): allocated cluster chain at %lu (%lu clusters)\n",
733 * start - preferred start of cluster chain.
736 * last allocated cluster.
737 * retcluster - put the first allocated cluster's number here.
823 * containing the cluster chain to be freed.
824 * startcluster - number of the 1st cluster in the chain of clusters to be
828 freeclusterchain(struct msdosfsmount *pmp, u_long cluster)
836 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) {
837 byteoffset = FATOFS(pmp, cluster);
849 usemap_free(pmp, cluster);
853 if (cluster & 1) {
854 cluster = readcn >> 4;
858 cluster = readcn;
865 cluster = getushort(bp->b_data + bo);
869 cluster = getulong(bp->b_data + bo);
871 (MSDOSFSFREE & FAT32_MASK) | (cluster & ~FAT32_MASK));
874 cluster &= pmp->pm_fatmask;
875 if ((cluster | ~pmp->pm_fatmask) >= CLUST_RSRVD)
876 cluster |= pmp->pm_fatmask;
885 * Read in FAT blocks looking for free clusters. For every free cluster
957 * Allocate a new cluster and chain it onto the end of the file.
963 * ncp - where to put cluster number of the first newly allocated cluster
964 * If this pointer is 0, do not return the cluster number.
994 * If the "file's last cluster" cache entry is empty, and the file
1011 * Allocate a new cluster chain and cat onto the end of the
1030 * Give them the filesystem relative cluster number if they want
1053 * Update the "last cluster of the file" entry in the
1102 * manipulating the upper bit of the FAT entry for cluster 1. Note that
1106 * The fatentry() routine only works on cluster numbers that a file could
1107 * occupy, so it won't manipulate the entry for cluster 1. So we have to do
1108 * it here. The code was stolen from fatentry() and tailored for cluster 1.
1143 * pseudo-cluster 1.