Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2004 14:54:03 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Tim Traver <tt-list@simplenet.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: hard links for directories ?
Message-ID:  <20040817052403.GE88156@wantadilla.lemis.com>
In-Reply-To: <6.1.2.0.0.20040816220030.04148ec0@mail1.simplenet.com>
References:  <6.1.2.0.0.20040816220030.04148ec0@mail1.simplenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--f61P+fpdnY2FZS1u
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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@FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.

--f61P+fpdnY2FZS1u
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQFBIZZzIubykFB6QiMRAjOIAJ9Vu3ozP5qy76ZdqolmLk6Sq8ViMQCcCU0/
xuoj+WAr6UAXc4FSMO8Vrao=
=xhyb
-----END PGP SIGNATURE-----

--f61P+fpdnY2FZS1u--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040817052403.GE88156>