| 40 | } |
| 41 | |
| 42 | int 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 | |
| 48 | PartitionDevice::~PartitionDevice(){ |
| 49 |
nothing calls this directly
no test coverage detected