• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CatalogSearch - how to find hard links?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CatalogSearch - how to find hard links?
      • From: Thomas Tempelmann <email@hidden>
References: 
 >CatalogSearch - how to find hard links? (From: Thomas Tempelmann <email@hidden>)

  • Prev by Date: CatalogSearch - how to find hard links?
  • Next by Date: Re: CatalogSearch - how to find hard links?
  • Previous by thread: CatalogSearch - how to find hard links?
  • Next by thread: Re: CatalogSearch - how to find hard links?
  • Index(es):
    • Date
    • Thread