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 (Filesystem-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/filesystem-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com