CS FundamentalsHardGATE CS
Why can a hard link not normally point to a directory or to a file on a different file system?
- A. Because directories have no inode
- B. Directory hard links could create cycles that break traversal and reference counting, and inode numbers are meaningful only within one file system
- C. Because hard links store path names, which cannot cross devices
- 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
- Path /usr/local/bin/tool is opened on a Unix file system where every directory fits in one block, no inode or block is cached except the…
- A disk has 16 surfaces, 512 cylinders and 64 sectors per track. Sectors are numbered starting at 0, fastest over sectors, then surfaces…
- A disk has 8 platters (both surfaces used), 20,000 tracks per surface, 400 sectors per track on average and 512-byte sectors. What is its…
- Which of the following events causes a process to move from RUNNING to READY (not to WAITING)?
- How many of these transitions are possible in the standard five-state model (new, ready, running, waiting, terminated)? 1. waiting →…
- Which of these does a context switch between two threads of the SAME process need NOT change, but a switch between two different processes…