[comp.sys.mac.programmer] what is the # of the catalog file?

reissell@cc.helsinki.fi (08/16/90)

hello everybody,

here's one thing i haven't been able to figure out about the 
catalog and an the extents trees on a volume. if i've understood
correctly the info on this in the file manager section of im-iv,
the search key for extents records is the file number. so, assuming
that the catalog file grows to be large enough to need more extents
than the three assigned for it initially in the volume information block
(im-iv, page 166), what is the search key (i.e. file number) for
the extents records of the catalog file?? 
(my guess is: extents file = 0, catalog file = 1, root dir = 2, etc)

thanks for any help,
jussi reissell.
reissell@cc.Helsinki.Fi
reissell@finuh.bitnet

ts@cup.portal.com (Tim W Smith) (08/17/90)

If you are doing anything that requires knowledge of low level
details of HFS, be aware that the description in IM is not
complete.  There are fields in the nodes of the trees, for
example (if I remember right), that are not documented in IM.

There's an unpublished tech note that gives all the gory details.
(At least, it was unpublised when I got a copy by asking DTS what
these fields were.  I've noticed it on one of the developer CD
ROMs.  I think it was Discy Business).

						Tim Smith

peter@hari.VIEWlogic.com (Peter Colby) (08/17/90)

In article <32895@cup.portal.com>, ts@cup.portal.com (Tim W Smith) writes:
|> If you are doing anything that requires knowledge of low level
|> details of HFS, be aware that the description in IM is not
|> complete.  There are fields in the nodes of the trees, for
|> example (if I remember right), that are not documented in IM.
|> 
|> There's an unpublished tech note that gives all the gory details.
|> (At least, it was unpublised when I got a copy by asking DTS what
|> these fields were.  I've noticed it on one of the developer CD
|> ROMs.  I think it was Discy Business).
|> 

Well, it seems it`s about time Apple published a fuller description of HFS.
In my case, I had an (effectively) infinitly nested folder which I couldn't
delete. I couldn't figure out how to clean it up via my raw disk editor(s)
so the only way I could fix things was to reinitialize the disk (This was the
startup volume/partition on my hard disk! Thank god I had a small partition
that I used for the startup volume only and had all my other work on other
partitions on the HD). If I'd had a clue on how to munge the catalog file I
would have been all set.

I suppose, if someone has a copy of that unpublished tech note, I would
love a copy of my own! Can anybody help me?

        Peter C

      (O)(O)(O)(O)(O)(O)(O)(O)(O)     (O)(O)(O)(O)(O)(O)(O)(O)(O)
      (O) !the doctor is out! (O)     (0) peter@viewlogic.com (0)
      (O)(O)(O)(O)(O)(O)(O)(O)(O)     (O)(O)(O)(O)(O)(O)(O)(O)(O)