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

Method BlockToLBA

Kernel/include/fs/ext2.h:259–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257 }
258
259 inline uint64_t BlockToLBA(uint64_t block){
260 return block * (blocksize / part->parentDisk->blocksize);
261 }
262
263 inline uint32_t ResolveInodeBlockGroup(uint32_t inode){
264 return (inode - 1) / super.inodesPerGroup;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected