Questions: File System Implementation

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

You create two hard links — 'report.pdf' and 'final.pdf' — pointing to the same file. You then delete 'report.pdf.' What happens to the file data?

AThe file data is immediately deleted when the first link is removed
BThe file data is preserved because 'final.pdf' has its own independent copy of the data
CThe file data is preserved because 'final.pdf' still references the same inode, and the inode's link count is now 1
DThe file data becomes inaccessible but remains on disk until the next garbage collection cycle
Question 2 Multiple Choice

Which file allocation method best supports efficient random access to an arbitrary byte within a large file?

ALinked allocation — each block can be placed anywhere, reducing seek time
BContiguous allocation — the block containing any byte can be computed directly from the byte offset
CFAT (File Allocation Table) — the allocation table is cached in memory, making traversal fast
DLinked allocation with doubly-linked pointers — backward traversal halves average seek time
Question 3 True / False

In a Unix file system, the inode stores the file's permissions, owner, timestamps, size, and pointers to data blocks — but NOT the filename.

TTrue
FFalse
Question 4 True / False

A disk showing file system fragmentation — where file blocks are scattered non-contiguously — means the storage device is nearly full.

TTrue
FFalse
Question 5 Short Answer

Explain why hard links are possible in Unix file systems. What does their existence reveal about the relationship between filenames and file data?

Think about your answer, then reveal below.