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?
Get Free Quote!
284 Experts Online