221,605 views
17 votes
17 votes
what is the maximum file size supported by a file system with 20 direct blocks, single, double, and triple indirection? The block size is 1024 bytes. Disk block numbers can be stored in 4 bytes.

User Arca Artem
by
3.3k points

2 Answers

16 votes
16 votes

Answer:

64 gigs

Step-by-step explanation:

Ur mum!

User Librik
by
3.2k points
17 votes
17 votes

Answer:

We have, block size = 512

number of block numbers in an indirection block

= block size / 4

= 128

number of blocks for file data in that file object

= 16 + 128 + 128^2 + 128^3

Maximum file size:

(direct + single indirect + double indirect + triple indirect) * (blocksize)

= (16 + 512/4 + (512/4)^2 + (512/4)^3) * (512)

= 68853964800 bytes, ~64 gigs

Step-by-step explanation:

User Mowshon
by
2.7k points