Lines Matching refs:cluster

98 	TRACE(("%s: sect/cluster %d\n", __FUNCTION__, fSectorsPerCluster));
104 TRACE(("%s: cluster shift %d\n", __FUNCTION__, fClusterShift));
138 TRACE(("%s: block size %d, sector size %d, sectors/cluster %d\n", __FUNCTION__,
140 TRACE(("%s: block shift %d, sector shift %d, cluster shift %d\n", __FUNCTION__,
150 TRACE(("%s: found fat%d filesystem, root dir at cluster %d\n", __FUNCTION__,
192 Volume::ClusterToOffset(uint32 cluster) const
194 return (fDataStart << SectorShift()) + ((cluster - 2) << ClusterShift());
198 Volume::NextCluster(uint32 cluster, uint32 skip)
200 //TRACE(("%s(%d, %d)\n", __FUNCTION__, cluster, skip));
201 // lookup the FAT for next cluster in chain
219 offset += cluster * fatBytes;
221 if (!IsValidCluster(cluster))
242 cluster = next;
250 Volume::IsValidCluster(uint32 cluster) const
252 if (cluster > 1 && cluster < fTotalClusters)
259 Volume::IsLastCluster(uint32 cluster) const
261 if (cluster >= fTotalClusters && ((cluster & 0xff8) == 0xff8))
267 /*! Allocates a free cluster.
268 If \a previousCluster is a valid cluster idnex, its chain pointer is
269 changed to point to the newly allocated cluster.
281 // Iterate through the FAT to find a free cluster.
296 // If a previous cluster was given, update its list link.
317 Volume::_UpdateCluster(uint32 cluster, uint32 value)
323 if (!IsValidCluster(cluster))
332 offset += cluster * fatBytes;
365 Volume::_ClusterAllocated(uint32 cluster)
382 // update number of free cluster
387 // update number of most recently allocated cluster
388 write32(buffer, 0x1ec, cluster);