Lines Matching full:cluster

113  * Map the logical cluster number of a file into a physical disk sector
117 * findcn - file relative cluster whose filesystem relative cluster number
121 * cnp - address of where to place the filesystem relative cluster number.
126 * This function has one side effect. If the requested file relative cluster
152 * clusters. If the cluster number is beyond the end of the root in pcbmap()
178 * All other files do I/O in cluster sized blocks in pcbmap()
228 * Force the special cluster numbers in pcbmap()
229 * to be the same for all cluster sizes in pcbmap()
253 /* update last file cluster entry in the FAT cache */ in pcbmap()
259 * Find the closest entry in the FAT cache to the cluster we are looking
284 * relative cluster frcn and beyond.
366 * cluster number into the appropriate bytes in the FAT.
376 * cluster n cluster n+1
411 clusterfree(struct msdosfsmount *pmp, u_long cluster) in clusterfree() argument
416 error = fatentry(FAT_GET_AND_SET, pmp, cluster, &oldcn, MSDOSFSFREE); in clusterfree()
420 * If the cluster was successfully marked free, then update in clusterfree()
422 * bit in the "in use" cluster bit map. in clusterfree()
424 usemap_free(pmp, cluster); in clusterfree()
428 * Get or Set or 'Get and Set' the cluster'th entry in the FAT.
433 * cn - which cluster is of interest
435 * cluster'th entry if this is a get function
436 * newcontents - the new value to be written into the cluster'th element of
439 * This function can also be used to free a cluster by setting the FAT entry
440 * for a cluster to 0.
443 * fatentry() marks a cluster as free it does not update the inusemap in
472 * If they asked us to return a cluster number but didn't tell us in fatentry()
484 * Be sure the requested cluster is in the filesystem. in fatentry()
547 * Update a contiguous cluster chain
550 * start - first cluster of chain
552 * fillwith - what to write into FAT entry of last cluster
619 * Check the length of a free cluster chain starting at start.
673 * start - start of cluster chain.
676 * last allocated cluster.
677 * retcluster - put the first allocated cluster's number here.
702 printf("clusteralloc(): allocated cluster chain at %lu (%lu clusters)\n", in chainalloc()
716 * start - preferred start of cluster chain.
719 * last allocated cluster.
720 * retcluster - put the first allocated cluster's number here.
802 * containing the cluster chain to be freed.
803 * startcluster - number of the 1st cluster in the chain of clusters to be
807 freeclusterchain(struct msdosfsmount *pmp, u_long cluster) in freeclusterchain() argument
814 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { in freeclusterchain()
815 byteoffset = FATOFS(pmp, cluster); in freeclusterchain()
828 usemap_free(pmp, cluster); in freeclusterchain()
832 if (cluster & 1) { in freeclusterchain()
833 cluster = readcn >> 4; in freeclusterchain()
837 cluster = readcn; in freeclusterchain()
844 cluster = getushort(bp->b_data + bo); in freeclusterchain()
848 cluster = getulong(bp->b_data + bo); in freeclusterchain()
850 (MSDOSFSFREE & FAT32_MASK) | (cluster & ~FAT32_MASK)); in freeclusterchain()
853 cluster &= pmp->pm_fatmask; in freeclusterchain()
854 if ((cluster | ~pmp->pm_fatmask) >= CLUST_RSRVD) in freeclusterchain()
855 cluster |= pmp->pm_fatmask; in freeclusterchain()
863 * Read in FAT blocks looking for free clusters. For every free cluster
935 * Allocate a new cluster and chain it onto the end of the file.
941 * ncp - where to put cluster number of the first newly allocated cluster
942 * If this pointer is 0, do not return the cluster number.
971 * If the "file's last cluster" cache entry is empty, and the file in m_extendfile()
988 * Allocate a new cluster chain and cat onto the end of the in m_extendfile()
1007 * Give them the filesystem relative cluster number if they want in m_extendfile()
1030 * Update the "last cluster of the file" entry in the in m_extendfile()