file system
Posted: Sat Oct 04, 2003 6:39 am
Hi,
i am impelementing ext2fs file system and i get information from here about it.
http://www.nongnu.org/ext2-doc/ext2.html#S-INODES-COUNT
what i want is to make sure, that i am on the right way.
well i deceded that i will have
2 sectors per block
1390 blocks per group
32 group descriptors per block
8 inodes per block
well, now i want to write super block information,
so the first field of the supe block (s_inodes_count)
should be 8*1390 ?
thank you
i am impelementing ext2fs file system and i get information from here about it.
http://www.nongnu.org/ext2-doc/ext2.html#S-INODES-COUNT
what i want is to make sure, that i am on the right way.
well i deceded that i will have
2 sectors per block
1390 blocks per group
32 group descriptors per block
8 inodes per block
Code: Select all
spb = 2; // 2 sectors per block 1024 (block)???
???bpg = (Max_Sector - DISK_OFFSET_IN_SECTORS) / 2; // only one group on the floppy
???gdpb = spb*512/ sizeof(ext2fsGroupDescriptor);
???ipb = spb*512/ sizeof(ext2fsInode);
well, now i want to write super block information,
so the first field of the supe block (s_inodes_count)
should be 8*1390 ?
thank you