MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / ClusterToLBA

Method ClusterToLBA

Kernel/src/fs/fat32.cpp:32–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 uint64_t Fat32Volume::ClusterToLBA(uint32_t cluster){
33 return (bootRecord->bpb.reservedSectors + bootRecord->bpb.fatCount * bootRecord->ebr.sectorsPerFAT) + cluster * bootRecord->bpb.sectorsPerCluster - (2 * bootRecord->bpb.sectorsPerCluster);
34 }
35
36 Fat32Volume::Fat32Volume(PartitionDevice* _part, char* name){
37 this->part = _part;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected