hard links for directories ?

Greg 'groggy' Lehey grog at FreeBSD.org
Mon Aug 16 22:24:08 PDT 2004


On Monday, 16 August 2004 at 22:02:11 -0700, Tim Traver wrote:
> Hi all,
>
> 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?

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
Note: I discard all HTML mail unseen.
Finger grog at FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040817/fdfd30e3/attachment.bin


More information about the freebsd-questions mailing list