Re: Hard links to directories
Re: Hard links to directories
- Subject: Re: Hard links to directories
- From: Chris Idou <email@hidden>
- Date: Thu, 2 Oct 2008 00:05:07 -0700 (PDT)
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/ExploringLeopardwithDTrace/index.html
--- On Wed, 10/1/08, Kevin Van Vechten <email@hidden> wrote:
> From: Kevin Van Vechten <email@hidden>
> Subject: Re: Hard links to directories
> To: email@hidden
> Cc: email@hidden
> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden