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

Method WriteBlock

Kernel/src/storage/partitiondevice.cpp:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
44
45 return parentDisk->WriteDiskBlock(lba + startLBA, count, buffer);
46}
47
48PartitionDevice::~PartitionDevice(){
49

Callers

nothing calls this directly

Calls 1

WriteDiskBlockMethod · 0.45

Tested by

no test coverage detected