Need function to resolve a 64 bit File ID (CNID) into a file reference or path

Number:rdar://33507188 Date Originated:July 25 2017
Status:duplicate of 25031382 Resolved:
Product:macOS Product Version:10.12.6 + 10.13b3
Classification:Bug Reproducible:Always
There is currently no documented way to determine a file that's identified by its Catalog Node ID, especially if it's using a 64 bit value.

This is a problem when using BSD level functions such as searchfs() or getattrlist() returning such CNIDs. In the case of searchfs(), that's the only information returned, meaning searchfs() is effectively unusable without this missing function.

(See also DTS request #669480283 which confirms this issue)

Steps to Reproduce:
Search the macOS SDK docs for a function that resolves a CNID

Expected Results:
Find at least one function, making everyone happy

Observed Results:
Sad faces.

10.12.6, 10.13b3


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!