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

Method WriteBlock

Kernel/src/fs/ext2.cpp:377–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375 }
376
377 int Ext2Volume::WriteBlock(uint32_t block, void* buffer){
378 if(block > super.blockCount)
379 return 1;
380
381 if(int e = part->WriteBlock(BlockToLBA(block), blocksize, buffer)){
382 Log::Error("[Ext2] Disk error (%e) reading block %d (blocksize: %d)", e, block, blocksize);
383 return e;
384 }
385
386 return 0;
387 }
388
389 int Ext2Volume::ReadBlockCached(uint32_t block, void* buffer){
390 if(block > super.blockCount)

Callers 2

WriteBlockCachedMethod · 0.45
SyncInodeMethod · 0.45

Calls 1

ErrorFunction · 0.85

Tested by

no test coverage detected