GATE / CS ARCHIVE

GATE CSE 2014 SET 2 / QUESTION 20

GATE CSE 2014 Set 2 Q20

Operating Systems · File Systems · Full GATE CSE 2014 Set 2 paper

GATE 2014 Set 2, Q20 1 mark · NAT
Report issue

File Systems

Question 20, GATE 2014: A FAT-based filesystem has 4-byte FAT entries. The disk size is 100×10^6 bytes and the data-block size is 10^3 bytes. Under the stated FAT-overhead model, find the largest file size in units of 10^6 bytes.
Tap to enlarge
Answer & solution

Official answer: 99.55 to 99.65

Our answer: 99.6

1. Set up the reasoning. First count the nominal blocks on the disk, then reserve one four-byte FAT entry per block. The question's units are decimal, so retain powers of 10 rather than substituting powers of 2.

2. Derive the result. The simplified model gives 100×10⁶/10³=100000 disk blocks and one 4-byte FAT entry per block, totaling 400000 bytes. Subtracting FAT space leaves 99.6×10⁶bytes for one file, within the accepted range. This neglects boot sectors, directories, duplicate FAT copies and other metadata, as no such overhead is specified.

3. Check the interpretation. Subtract the specified overhead from disk capacity before converting to millions of bytes. This simplified maximum assumes one file can occupy all remaining data storage and ignores unmentioned directories, boot structures, and redundant FAT copies.

Original paper, page 33 · Answer key