Home » Operating Systems » Operating systems miscellaneous » Question

Operating systems miscellaneous

  1. 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 128 byte and the size of each disk block address is 8 byte. The maximum possible file system is
    1. 3 kbyte
    2. 35 kbyte
    3. 280 kbyte
    4. dependent on the size of the disk
Correct Option: B

Total number of possible addresses stored in a disk block = 128/8 = 16
Maximum number of addressable bytes due to direct address block = 8 × 128
Maximum number of addressable bytes due to 1 single indirect address block = 16 × 128
Maximum number of addressable bytes due to 1 double indirect address block = 16 × 16 × 128
The maximum possible file size = 8 × 128 + 16 × 128 + 16 × 16 × 128 = 35 Kbyte



Your comments will be displayed only after manual approval.