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

Method InodeLBA

Kernel/include/fs/ext2.h:271–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269 }
270
271 inline uint64_t InodeLBA(uint32_t inode){
272 uint32_t block = blockGroups[ResolveInodeBlockGroup(inode)].inodeTable;
273 uint64_t lba = (block * blocksize + ResolveInodeBlockGroupIndex(inode) * inodeSize) / part->parentDisk->blocksize;
274
275 return lba;
276 }
277
278 void WriteSuperblock();
279 void WriteBlockGroupDescriptor(uint32_t index);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected