file system

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Andrew

file system

Post by Andrew »

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

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
Post Reply