Assume within an inode there are 12 direct pointers, a single indirect…

 Assume within an inode there are 12 direct pointers, a single indirect pointer, and a double indirect pointer. Assume a 4KB block size, and disk addresses that are 32 bits. What is the maximum file size (measured in number of blocks) on this system

Answer: A. 1049612 blocks.Explanation: A block can have 4KB/4bytes (32bits) = 1K = 1024 pointers. 12 direct pointers : 12 blocks 1 single indirect: A block can point to 1024 other…

  1. A.

    1049612 blocks.

  2. B.

    10496 blocks.

  3. C.

    2049612 blocks.

  4. D.

    2048 blocks.

Attempted by 78 students.

Show answer & explanation

Correct answer: A

Explanation:

A block can have 4KB/4bytes (32bits) = 1K = 1024 pointers.

12 direct pointers : 12 blocks

1 single indirect: A block can point to 1024 other blocks as it can have 1024 pointers

1 double indirect: 1 block full of single indirect addresses: 1024 addresses and 1024 blocks of addresses = 1024 * 1024 blocks.

Total = 12 + 1024 + 1024*1024 blocks = 1049612 blocks.

Explore the full course: Isro

Loading lesson…