ext2 clarification
Posted: Sat Nov 20, 2010 4:26 pm
Hi
In the ext2 wiki (http://wiki.osdev.org/Ext2), I found the following:
The it goes on to say:
In the ext2 wiki (http://wiki.osdev.org/Ext2), I found the following:
How does that make sense? If the superblock is 1024 bytes and the block descriptor table "is located in the block immediately following the Superblock", then I'd say it must begin at block 1, no??Locating the Block Group Descriptor Table
The table is located in the block immediately following the Superblock. So if the block size (determined from a field in the superblock) is 1024 bytes per block, the Block Group Descriptor Table will begin at block 2.
The it goes on to say:
So even if the block size was 512 bytes, it would start at block 1, i.e. in the middle of the superblock (which with its 1024 bytes would occupy 2 blocks)???For any other block size, it will begin at block 1. Remember that blocks are numbered starting at 0, and that block numbers don't usually correspond to physical block addresses.