A file system with 300 GByte disk uses a file descriptor with 8 direct block…
A file system with 300 GByte disk uses a file descriptor with 8 direct block addresses, 1 indirect block address and 1 doubly indirect block address. The size of each disk block is 256 Bytes and the size of each disk block address is 8 Bytes. The maximum possible file size in this file system is
Answer: C. 266 KBytes — It’s given disk block is of size 256B. So, one direct block addressing will point to 8 disk blocks = 8*256 B = 2 KB Singly Indirect block addressing will…
- A.
3 KBytes
- B.
35 KBytes
- C.
266 KBytes
- D.
dependent on the size of the disk
Attempted by 78 students.
Show answer & explanation
Correct answer: C
It’s given disk block is of size 256B.
So, one direct block addressing will point to 8 disk blocks = 8*256 B = 2 KB
Singly Indirect block addressing will point to 1 disk block which has 256/8 disc block addresses = (256/8)*256 B = 8 KB
Doubly indirect block addressing will point to 1 disk block which has 256/8 addresses to disk blocks which in turn has 256/8 addresses to disk blocks = 32*32*256 B = 256 KB
Maximum possible file size = 2 KB + 8 KB + 256 KB = 266 KB