tag:blogger.com,1999:blog-8797526579651167122.post5042867149831784506..comments2023-12-25T15:44:39.990+00:00Comments on Views of a Coder: APFS and fast catalog searchThomas Tempelmannhttp://www.blogger.com/profile/17366020023638328512noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-8797526579651167122.post-11079641267122994932017-07-26T14:53:07.459+01:002017-07-26T14:53:07.459+01:00Ah, I didn't know about the fctl call - that&#...Ah, I didn't know about the fctl call - that's hard to figure out if you don't know about it. I'm about to create a APFS vol with >32bit node IDs and will see if that'll work.Thomas Tempelmannhttps://www.blogger.com/profile/17366020023638328512noreply@blogger.comtag:blogger.com,1999:blog-8797526579651167122.post-24841593327160910322017-07-26T14:51:53.915+01:002017-07-26T14:51:53.915+01:00Yes, everyone: Feel free to contact me via e-mail ...Yes, everyone: Feel free to contact me via e-mail (see my About page)Thomas Tempelmannhttps://www.blogger.com/profile/17366020023638328512noreply@blogger.comtag:blogger.com,1999:blog-8797526579651167122.post-12978805490328290082017-07-26T11:55:09.075+01:002017-07-26T11:55:09.075+01:00Damn the code is broken by the blog software, plea...Damn the code is broken by the blog software, please tell me if it's ok to mail to your gmail address and I will do so.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8797526579651167122.post-44304467631349049142017-07-26T11:51:19.272+01:002017-07-26T11:51:19.272+01:00#include
#include
#include
#include
#include
...#include <br />#include <br />#include <br />#include <br />#include <br />#include <br />#include <br /><br />int main(int ac, char **av) {<br /> int res;<br /> int fd;<br /> char buf[MAXPATHLEN];<br /> <br /> fprintf(stdout, "Testing FILE ...\n");<br /> if ((fd = open(av[1], O_RDONLY)) < 0)<br /> perror(av[0]);<br /> else {<br /> if ((res = fcntl(fd, F_GETPATH, buf)) < 0)<Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8797526579651167122.post-73705968115599721432017-07-26T07:16:42.343+01:002017-07-26T07:16:42.343+01:00Okay, even if I use the correct IDs as shown in yo...Okay, even if I use the correct IDs as shown in your example, I cannot figure out how to resolve the /.vol/ path to a normal path using BSD/POSIX functions. GetFileInfo probably uses Carbon, which isn't 64 bit ID capable.Thomas Tempelmannhttps://www.blogger.com/profile/17366020023638328512noreply@blogger.comtag:blogger.com,1999:blog-8797526579651167122.post-982654443526356162017-07-26T06:37:44.854+01:002017-07-26T06:37:44.854+01:00For diskutil in 10.12.6 see https://eclecticlight....For diskutil in 10.12.6 see https://eclecticlight.co/2017/07/24/sierra-isnt-finished-yet-apfs-support-is-undone-in-10-12-6/Thomas Tempelmannhttps://www.blogger.com/profile/17366020023638328512noreply@blogger.comtag:blogger.com,1999:blog-8797526579651167122.post-44940787135882551652017-07-25T23:08:57.275+01:002017-07-25T23:08:57.275+01:00The traditional way does not work VolumeId/FileId ...The traditional way does not work VolumeId/FileId reported by stat?<br />Like:<br />m12:XCode chris$ stat about_xcode_and_ios_sdk.pdf<br />771751958 95058 -rw-r--r-- 1 chris staff 0 ...<br />m12:XCode chris$ GetFileInfo /.vol/771751958/95058<br />file: "/Volumes/Files/XCode/about_xcode_and_ios_sdk.pdf"<br />...<br />So somehow Apple must resolve their file refernce CFURLs there is stillAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8797526579651167122.post-12134263178175598172017-07-25T13:42:31.305+01:002017-07-25T13:42:31.305+01:00I could not figure out the IDs to use with the /.v...I could not figure out the IDs to use with the /.vol/ dir.Thomas Tempelmannhttps://www.blogger.com/profile/17366020023638328512noreply@blogger.comtag:blogger.com,1999:blog-8797526579651167122.post-77633616570680139752017-07-25T13:10:15.760+01:002017-07-25T13:10:15.760+01:00Thanks for the info. What about the /.vol/ directo...Thanks for the info. What about the /.vol/ directory, is it available on APFS?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8797526579651167122.post-232082859662941432017-07-25T11:39:59.792+01:002017-07-25T11:39:59.792+01:00Thank you, keep up the good work!Thank you, keep up the good work!Anonymousnoreply@blogger.com