Operating System.
Please only answer this question if you are sure of the answer, thank you.
Please provide an explanation for your answer as to why it is for what it is.
Assume that the maximum capacity of a file system space is 8TB (1TB = 240 bytes), and the disk block size is 2KB. The file control block (FCB) contains an index table of 512 bytes. Answer the following questions:
Suppose that the index table only adopts the direct index structure, and stores the disk block numbers occupied by the file. How many bytes are required for each index table entry to represent a disk block number? What is the maximum length of a single file that can be supported by this scheme?
capacity of file system=8TB
disk block size is 2KB
Therefore number of disk blocks=size of file system/disk block size
There fore we need 32 bits to address a block.
Each index table entry has bits to address a block
So index table entry=32 bits=4Bytes.
index table size=512B.
Number of entries in index table=size of index table/size of one entry.
=512/4
=128
.Hence there are 128 entries in index table and each entry points to a 2 KB block.
So maximum file size=number of entries in index table* disk block size
=128*2 KB
=256 KB
maximum file size of a single file=256KB
Get Answers For Free
Most questions answered within 1 hours.