Lines Matching full:cluster
62 * For each cluster, we use 1 bit to represent if it's a head cluster
63 * (the first cluster of a cluster chain).
68 * whole FAT and mark each cluster identified as "next" cluster as
70 * corresponding cluster was a "head" cluster.
72 * We use head bitmap to identify lost chains: a head cluster that was
73 * not being claimed by any file or directories is the head cluster of
228 /* Odd cluster: lower 4 bits belongs to the subsequent cluster */ in fat_get_fat12_next()
251 * or the preceding (for odd clusters) cluster and combine in fat_set_fat12_next()
497 pfatal("Invalid cluster: %ud", cl); in fat_get_cl_next()
513 pfatal("Invalid cluster: %ud", cl); in fat_set_cl_next()
563 * The first 2 FAT entries contain pseudo-cluster numbers with the following
936 * consider all clusters as possible head cluster (beginning of in readfat()
941 * For each "next" cluster, the possible values are: in readfat()
943 * a) CLUST_FREE or CLUST_BAD. The *current* cluster can't be a in readfat()
946 * the cluster. in readfat()
947 * c) A valid cluster. It means that cluster (nextcl) is not a in readfat()
948 * head cluster. Note that during the scan, every cluster is in readfat()
951 * truncated at the current cluster. in readfat()
967 /* Check if the next cluster number is valid */ in readfat()
969 /* Save a hint for next free cluster */ in readfat()
983 pwarn("Cluster %u continues with out of range " in readfat()
984 "cluster number %u\n", in readfat()
995 pwarn("Cluster %u crossed another chain at %u\n", in readfat()
1016 * Get type of reserved cluster
1031 * Examine a cluster chain for errors and count its size.
1041 * cluster, and it must be a valid cluster. While scanning the in checkchain()
1043 * as a "next" cluster. Assert all the three conditions. in checkchain()
1049 * Immediately mark the 'head' cluster that we are about to visit. in checkchain()
1059 * cluster to be either a not yet seen and valid cluster (we in checkchain()
1081 * The chain ended with an out-of-range cluster number. in checkchain()
1087 * If the current cluster points to an invalid cluster, the in checkchain()
1088 * current cluster might have useful data and we truncate at in checkchain()
1089 * the current cluster instead. in checkchain()
1092 pwarn("Cluster chain starting at %u ends with cluster marked %s\n", in checkchain()
1096 pwarn("Cluster chain starting at %u ends with cluster out of range (%u)\n", in checkchain()
1117 * Clear cluster chain from head.
1242 * Check a complete in-memory FAT for lost cluster chains
1277 pwarn("Lost cluster chain at cluster %u\n" in checklost()
1278 "%zd Cluster(s) lost\n", in checklost()
1310 pwarn("Next free cluster in FSInfo block (%u) %s\n", in checklost()