Redirected
edited by
1,133 views
2 votes
2 votes
A file system with 512 GB disk uses a file descriptor with 16 direct block addresses, 1 indirect block address, 1 doubly indirectly block address and 1 triple indirect block addresses. Size of each disk block is 256 bytes and the size of each disk block address is 8 bytes. The maximum possible file size is____________(in MB).
Ans: 8.26 but in MadeEasy it is 8 how..?
edited by

3 Answers

Best answer
4 votes
4 votes

max file size =

(db size/ DBA )3*(DISK BLOCK SIZE )

256/8= 32= 2

=(25)3* 28

=(215)*28

=223   =8MB

selected by
7 votes
7 votes

Whenever file size is being asked , we consider a particular level only..So here :

Maximum file size    =  File size corresponding to triple indirect pointer

As opposed to this , filesystem encompasses all levels , starting from direct to triple indirect here..As the question is about maximum file size possible , we find it as :

Maximum file size  =   File size corresponding to triple indirect pointer

                            =   (Disk block size / Disk block address size)3 * Disk block size

                            =   (256 / 8)3 * 256 B

                            =    223 B

                            =    8 MB

Hence maximum file size is 8 MB..

However if asked about maximum file system size then it requires summation of file size at each level..Hence in that case we have :

File system size   =   8 MB + (1 / 4 + 1 / 128 + 1 / 4096 ) MB

                           =   8.26 MB (approx)

Related questions

1 votes
1 votes
1 answer
4
Chetan28kumar asked Dec 12, 2018
982 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?