GATE - 2004 | OS | A unix-style I-node has 10 direct pointers and one single, one double

GATE - 2004 | OS | A unix-style I-node has 10 direct pointers and one single, one double
Posted on 21-02-2022

GATE - 2004 [Operating System]

Question

A unix-style I-node has 10 direct pointers and one single, one double and one triple indirect pointers. Disk block size is 1 Kbyte, disk block address is 32 bits, and 48-bit integers are used. What is the maximum possible file size?

A

224 bytes

B

232 bytes

C

234 bytes

D

248 bytes

Solution:

Option (C) is Correct.

Maximum size of file = 10 Direct + 1 Single Indirect + 1 Double Indirect + 1 Triple Indirect
= 10 + 28 + (28)2 + (28)3
= 224 Blocks (App)


Size of each block = 210
Maximum file size = 224 × 210 = 234

Thank You

Download App for Free PDF Download

GovtVacancy.Net Android App: Download

government vacancy govt job sarkari naukri android application google play store https://play.google.com/store/apps/details?id=xyz.appmaker.juptmh