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 KBytesIt’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…

  1. A.

    3 KBytes

  2. B.

    35 KBytes

  3. C.

    266 KBytes

  4. 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

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…