On Aug 17, 2004, at 12:24 AM, Greg 'groggy' Lehey wrote:

On Monday, 16 August 2004 at 22:02:11 -0700, Tim Traver wrote:

This may be a stupid question, but is it possible to make hard links to
directories ??? I know you can with files, and normally, you would do a
soft link for directories, but is there any way to finagle this ?

Sure, there are ways. But why would you want to?

A link to a directory makes it a subdirectory of the directory
containing the link.  If you have two links to a directory, where
should the directory's .. link point?  How would fsck know what to do?

Root is the only one allowed to make hard links to directories. As Greg says, "How would fsck know which is the correct parent directory?" Directories have only one parent. If a directory were to have two parents then you'd break the tree structure of the directory hierarchy. You would create a loop in the tree branches which would place utilities such as "find" in an infinite loop.

A symbolic link works just as well and is an obvious signpost to find, fsck, tar, etc...

Top posters will not be shown the honor of a reply.

[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to