Re: CatalogSearch - how to find hard links?
Re: CatalogSearch - how to find hard links?
- Subject: Re: CatalogSearch - how to find hard links?
- From: James Bucanek <email@hidden>
- Date: Fri, 25 Apr 2008 10:41:18 -0700
Thomas Tempelmann <mailto:email@hidden> wrote (Friday, April
25, 2008 9:59 AM +0200):
I like to find all hard links on a disk (time machine backup volumes, in
particular).
Assuming that FSCatalogSearch is the fastest method to scan an entire
volume, I simply called it with the FSSearchParams all set to zero, and
asking for the nodeIDs from FSCatalogInfo.
I've never used FSCatalogSearch to do this, but I've used
FSGetCatalogInfo. You want to include fsCatInfoNodeFlags in
whichInfo then examine the FSCatalogInfo.nodeFlags field. You're
looking for the kFSNodeHardLinkbit/kFSNodeHardLinkMask.
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden