Home » Operating Systems » Operating systems miscellaneous » Question

Operating systems miscellaneous

  1. 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 bit, and 48-bit integers are used. What is the maximum possible file size?
    1. 224 byte
    2. 232 byte
    3. 234 byte
    4. 248 byte
Correct Option: C

Size of 1 block = 1 kB
Block addresses size 1 pointer size = 32 bit = 4 bytes.

So , no. of pointers in =
210
B
22

1 block = 256
So direct pointer will have = 10 × 1kB = 10kB
Double will have = 256 × 256 × 1 kB
Triple will have = 256 × 256 × 256 × 1 kB = 28 × 28 × 28 × 210 B = 234 B
Hence (c) is correct option.



Your comments will be displayed only after manual approval.