Bug 22685

Summary: Repairing a directory hard link.
Product: Base System Reporter: KOIE Hidetaka <hide>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
diff none

Description KOIE Hidetaka 2000-11-08 10:10:01 UTC
When fsck finds a hard link, it displays
"<N> IS AN EXTRANEOUS HARD LINK TO DIRECTORY <D>".
<N> is a path to a directory
which is without an entry name.
<N> should be what is removed, then
it shoud be directory+entry.
At least, operator wants to know what will be removed.

Fix: FreeBSD: src/sbin/fsck/pass2.c,v 1.9.2.1 1999/08/29 15:13:07 peter Exp
How-To-Repeat: 1. fsdb /dev/RAWDEV
2. ls
3. ln INUM NEW_ENTRY
4. quit
5. fsck /dev/RAWDEV
6. fsck displays and questions:
   <PARENT_DIR_PATH>IS AN EXTRANEOUS HARD LINK TO DIRECTORY <FIRST_PATH>
   REMOVE? [yn]
Comment 1 iedowse freebsd_committer freebsd_triage 2001-11-17 22:46:52 UTC
State Changed
From-To: open->closed


Committed, thanks!