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

Method ReadBlock

Kernel/src/storage/partitiondevice.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36int PartitionDevice::ReadBlock(uint64_t lba, uint32_t count, void* buffer){
37 if(lba * parentDisk->blocksize + count > (endLBA - startLBA) * parentDisk->blocksize) return 2;
38
39 return parentDisk->ReadDiskBlock(lba + startLBA, count, buffer);
40}
41
42int PartitionDevice::WriteBlock(uint64_t lba, uint32_t count, void* buffer){
43 if(lba * parentDisk->blocksize + count > (endLBA - startLBA) * parentDisk->blocksize) return 2;

Callers

nothing calls this directly

Calls 1

ReadDiskBlockMethod · 0.45

Tested by

no test coverage detected