| 43 | } |
| 44 | |
| 45 | int exfat_read_cluster(disk_t *disk, const partition_t *partition, const struct exfat_super_block*exfat_header, void *buffer, const unsigned int cluster) |
| 46 | { |
| 47 | return disk->pread(disk, |
| 48 | buffer, |
| 49 | 1 << (exfat_header->block_per_clus_bits + exfat_header->blocksize_bits), |
| 50 | partition->part_offset + exfat_cluster_to_offset(exfat_header, cluster)); |
| 51 | } |
| 52 | |
| 53 | /*@ |
| 54 | @ requires \valid(partition); |
no test coverage detected