• 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
Searchfs return inodes non sorted in HFS+
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Searchfs return inodes non sorted in HFS+


  • Subject: Searchfs return inodes non sorted in HFS+
  • From: Irad K <email@hidden>
  • Date: Fri, 07 Sep 2018 13:44:22 +0300

Hi,

I'm using searchfs system-call in order to scan all files in HFS+ disk
partition.
I'd like to get the results ordered according to creation date or in
ascending inode index (basically it's the same because fileID isn't
recycled - new files get the next available fileID).

to do so I set the following bit (among many other bits :-) )


returnAttrList.commonattr = ATTR_CMN_FILEID;

basically, in HFS+, searchfs return the same ordering in each call, but the
ordering criteria is unknown. In APFS however, it comes fully sorted.

Perhaps anyone knows the difference in behavior between HFS+ and APFS or
how does the return fileID's are sorted according to ./core/hfs_search.c
... apfs doesn't have source code so i can only tell how it works by
experiments )

thanks,

Irad
 _______________________________________________
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: Searchfs return inodes non sorted in HFS+
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Next by Date: Re: Searchfs return inodes non sorted in HFS+
  • Next by thread: Re: Searchfs return inodes non sorted in HFS+
  • Index(es):
    • Date
    • Thread