Searchfs return inodes non sorted in HFS+
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