CS FundamentalsHardGATE CS

Why can a hard link not normally point to a directory or to a file on a different file system?

  1. A. Because directories have no inode
  2. B. Directory hard links could create cycles that break traversal and reference counting, and inode numbers are meaningful only within one file system
  3. C. Because hard links store path names, which cannot cross devices
  4. D. Because the kernel forbids more than one link per inode

Correct answer: B. Directory hard links could create cycles that break traversal and reference counting, and inode numbers are meaningful only within one file system

Cycles in the directory graph would make reference counting and tools like find unreliable, and a hard link names an inode number, which is unique only within its own file system. Symlinks have neither restriction.

More Operating Systems questions

Exams that ask this topic