{"id":18414,"date":"2017-07-20T16:03:34","date_gmt":"2017-07-20T20:03:34","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=18414"},"modified":"2024-10-11T16:11:09","modified_gmt":"2024-10-11T20:11:09","slug":"apfs-and-fast-catalog-search","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/07\/20\/apfs-and-fast-catalog-search\/","title":{"rendered":"APFS and Fast Catalog Search"},"content":{"rendered":"<p><a href=\"http:\/\/blog.tempel.org\/2017\/07\/apfs-and-fast-catalog-search.html\">Thomas Tempelmann<\/a>:<\/p>\n<blockquote cite=\"http:\/\/blog.tempel.org\/2017\/07\/apfs-and-fast-catalog-search.html\"><p>The good news is: The APFS file system code has support for the lower level <code>searchfs<\/code> function, and that&rsquo;s been already added in 2016, apparently, for OS X 10.12.<\/p><p>[&#8230;]<\/p><p>As of now (10.12.6, 10.13 beta 3), the <code>searchfs<\/code> function does search case-sensitive and not case-<em>in<\/em>sensitive as it should.<\/p><p>[&#8230;]<\/p><p>Much worse, though, is that the high-level <code>FSCatalogSearch<\/code> is entirely broken for APFS. That&rsquo;s why both EasyFind and FAF won&rsquo;t find files the fast way on APFS volumes right now. I don&rsquo;t understand why <code>FSCatalogSearch<\/code> doesn&rsquo;t work, though - it&rsquo;s supposed to simply call the lower-level <code>searchfs<\/code> function, which on HFS+ volumes does still work fine. Unfortunately, Apple has declared <code>FSCatalogSearch<\/code> <i>deprecated<\/i> a few years ago, even though there&rsquo;s no replacement function offered by the more modern <code>NSURL<\/code> based API. Because of this deprecation it&rsquo;s unlikely that this will get addressed.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Thomas Tempelmann: The good news is: The APFS file system code has support for the lower level searchfs function, and that&rsquo;s been already added in 2016, apparently, for OS X 10.12.[&#8230;]As of now (10.12.6, 10.13 beta 3), the searchfs function does search case-sensitive and not case-insensitive as it should.[&#8230;]Much worse, though, is that the high-level [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2024-10-11T20:11:10Z","apple_news_api_id":"70fbb023-496a-4de7-8a03-07441dd8c7fb","apple_news_api_modified_at":"2024-10-11T20:11:11Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AcPuwI0lqTeeKAwdEHdjH-w","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[1395,537,2670,31,1472,30,1381,1529,138,71,343],"class_list":["post-18414","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-apple-file-system-apfs","tag-filesystem","tag-hfs-plus","tag-ios","tag-ios-11","tag-mac","tag-macos-10-12","tag-macos-10-13","tag-optimization","tag-programming","tag-search"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=18414"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18414\/revisions"}],"predecessor-version":[{"id":18415,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18414\/revisions\/18415"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=18414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=18414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=18414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}