33.3k views
5 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.

2 Answers

0 votes

Answer:

64 gigs

Step-by-step explanation:

Ur mum!

User Michelli
by
3.7k points
2 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 Dynamphorous
by
3.8k points