edited by
9,281 views
31 votes
31 votes

In a particular Unix OS, each data block is of size $1024$ bytes, each node has $10$ direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can contain addresses for $128$ blocks. Which one of the following is approximately the maximum size of a file in the file system?

  1. $512$ MB
  2. $2$ GB
  3. $8$ GB
  4. $16$ GB
edited by

6 Answers

0 votes
0 votes

Its 2GB

0 votes
0 votes
Block Size = 2^10B

No. of block pointer in one block = 2^7

Total no. of block pointers = 10+2^7+2^7*2^7+2^7*2^7*2^7

                            = 10+2^7+2^14+2^21

Max file Size = (10+2^7+2^14+2^21)*1KB

              = 2113674KB

              = 2.01575660706 MB (option B)
Answer:

Related questions

28 votes
28 votes
4 answers
8