Re: Hard links to directories
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=A8aafonsd7+eiRGyzU2uh31mClycI3W7ZwHrXG5xzNLN9Xh+v3a++4fIS9Eise5PnEtzwR/QMUUxW0YAdLRKXO/fM8qIJCmATAY7fbh/YuXqV+2sHS442gpsg8zc2PB6pQr4KM03VTVEMn42VSKggZVOo8O8hTXfxmGsCcMs1Cg=; You don't have to be root. See the following article as an example of someone else who has verified this. http://www.mactech.com/articles/mactech/Vol.23/23.11/ExploringLeopardwithDTr... --- On Wed, 10/1/08, Kevin Van Vechten <kvv@apple.com> wrote:
From: Kevin Van Vechten <kvv@apple.com> Subject: Re: Hard links to directories To: idou747@yahoo.com Cc: darwin-kernel@lists.apple.com Date: Wednesday, October 1, 2008, 8:12 PM Directory hard links are really an implementation detail of Time Machine. It's not encouraged to create them (they're never created on non-Time Machine volumes), and it's not possible to create them except as root.
I took a quick glance at getattrlist(2) and didn't see this value exported, so I'm guessing it's not (easily) available.
- Kevin
On Oct 1, 2008, at 7:25 PM, Chris Idou wrote:
OS-X 10.5 now allows you to hard link directories.
However the link count of the directory seems to behave in the conventional unix way. i.e. it is the number of directories contained in that directory + 2 for "." and "..".
Is there a way to find out the link count for directories, or to otherwise discover if a particular directory has hard links?
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Chris Idou