Ext2 size of block group descriptor table
Posted: Mon Dec 19, 2016 12:32 pm
Hello again
In my ext2 implementation, I assume block group descriptor table is 1 block. Is that always correct? I'm not sure it is correct, because with the size of block group descriptor is 32 bytes, and with 1024 bytes of block size, a block can have only 32 block group descriptors. (1024 / 32 = 32) With 1024 bytes of block size, a block group descriptor can only handle 8 megabytes. With 32 block group descriptors, entire ext2 can handle only 256 megabytes. (8 * 32 = 256)
But I'm still not sure
In wiki.osdev.org/Ext2 it says we can find block group count with "Rounding up the total number of blocks divided by the number of blocks per block group".
If I round block group count to (block size in bytes / 32), can I found size of block group descriptor table in blocks?
If not, how can I?
Thanks
In my ext2 implementation, I assume block group descriptor table is 1 block. Is that always correct? I'm not sure it is correct, because with the size of block group descriptor is 32 bytes, and with 1024 bytes of block size, a block can have only 32 block group descriptors. (1024 / 32 = 32) With 1024 bytes of block size, a block group descriptor can only handle 8 megabytes. With 32 block group descriptors, entire ext2 can handle only 256 megabytes. (8 * 32 = 256)
But I'm still not sure
In wiki.osdev.org/Ext2 it says we can find block group count with "Rounding up the total number of blocks divided by the number of blocks per block group".
If I round block group count to (block size in bytes / 32), can I found size of block group descriptor table in blocks?
If not, how can I?
Thanks