edited by
550 views
1 votes
1 votes

A file system with 512 GB disk uses a file descriptor with 16 direct block addresses, 1 indirect block address, 1 doubly indirect block address, 1 triple indirect block address. Size of each disk block is 256 bytes. And size of each disk block address is 8 bytes. The maximum possible file size is:_____ (in GB)

My answer is 0.008 GB

In their solution, they say it's 8 GB, which I think is wrong.

edited by

1 Answer

1 votes
1 votes
ans is 0.008GB (rounded)

no.  of enteries in single block is =256/8=32; it means each block contain 32 enteries

1 indirect block address point to 32 blocks

 1 doubly indirect block address points to 32*32 blocks

1 triple indirect block address points to 32*32*32 blocks

and size of each block is 256B

so

Total file size is  ((16+32+32^2+ 32^3)*256)/2^30

Related questions

1 votes
1 votes
1 answer
4
Chetan28kumar asked Dec 12, 2018
999 views
Unix I-node has block size 8 KB and file possible with triple indirect is 128 GB.Number of bits disk block address contain is?