tags:

views:

372

answers:

1

Given an HFS+/HFS volume and the catalog node ID (CNID) of a file it should be possible to open that file, and technote 1150 describes the algorithm for doing just that, yet nowhere can I find the corresponding API call.

As far as I can tell, the whole API requires either the file's name or its parent catalog node ID.

What gives?

+1  A: 

Have you seen the volfs? http://developer.apple.com/qa/qa2001/qa1113.html

Graham Lee
I'm trying to open the catalog file (CNID 5), however I can't figure out a volume ID. -100 doesn't seem to cut it.
Rhythmic Fistman
Got it, but opening /.vol/234881026/5 doesn't seem to work, unfortunately. Would have been a nice, if undocumented, shortcut. Thanks.
Rhythmic Fistman
Volfs doesn't expose the catalogue file. Search for hfsdebug to see how you might work with that.
Graham Lee