Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Let's say you have an iNode that is filled to capacity with no indirect pointers. If you give it one indirect pointer, does its maximum file size simply double?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Wikipedia:

Unlike the inodes, which are fixed in number and allocated in a special part of the file system, the indirect blocks may be of any number and are allocated in the same part of the file system as data blocks. The number of pointers in the indirect blocks are dependent on the block size and size of block pointers. Example: with a 512 byte block size, and 4 byte block pointers, each indirect block can consist of 128 (512 / 4) pointers.

So no: The maximum file size more than doubles, since there are way more data block addresses in that single block pointed to by the indirect pointer than direct block addresses in the inode itself.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.