What is the maximum size for a file which does not use an indirect block?

computer science

Description

Question 1.  For these questions consider a Unix like file system as on page 18 of lecture 17 where the number of direct blocks are 16. Each block is 4KiB and a block number consists of 4 bytes. If you write a program to help calculate these answers you may submit this program. Ensure that the program is clear with good comments (with your login name). Give the answers from a) to d) in decimal bytes e.g. 65,536 rather than 2^16. 


(a) What is the maximum size for a file which does not use an indirect block? 


(b) What is the maximum size for a file which uses the single indirect block? (not the double or triple). 


(c) What is the maximum size for a file which uses the double indirect block? (not the triple).


 (d) What is the maximum size for a file in this system? 


(e) How many levels of indirection would be needed if we were to extend this file system to accommodate files up to 1 exbibyte (1024^6) in size?


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.