I-nodes

I have a question about how much data i-nodes take up for themselves. If every file has an i-node, that means that for every file there is an i-node entry for it. Lets say I have 1,000,000 files in my file system. Since i-nodes have 14 data blocks(with the last 3 data blocks pointing to other data blocks) which comes out to 28 blocks total.

So assumeing that one block is 4096 bytes that means that 4096 x 28 = 114688 bytes to store one file and 114688 x 1,000,000 is about 107 GB.

Is my math right? that just seems like alot of data to simply store files.
wait. nvm. I see now that an i-node contains much more than pointers to the data and that the pointers don't reside in their own block but take up only the 4 bytes necsarry to point to the actual data block.
Topic archived. No new replies allowed.