home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!actrix!David.Empson
- Newsgroups: comp.sys.apple2
- Subject: Re: HELP! In need of a GS/OS guru!
- Message-ID: <1992Jul25.062944.608@actrix.gen.nz>
- From: David.Empson@bbs.actrix.gen.nz
- Date: Sat, 25 Jul 1992 06:29:44 GMT
- Sender: David.Empson@actrix.gen.nz (David Empson)
- References: <1992Jul24.145509.17563@bnr.ca> <1992Jul24.231745.8940@slate.mines.colorado.edu>
- Organization: Actrix Information Exchange
- Lines: 45
-
- In article <1992Jul24.231745.8940@slate.mines.colorado.edu> gdesroch@slate.mines.colorado.edu (DESROCHERS GARY FREDERIC) writes:
- > gopher@bnr.ca (Jeff Robertson) writes:
- > : HELP!
- > :
- > : So. What I need is some kind GS/OS guru to bring me up to
- > : date. What does the Key Pointer of a type $5 file point to?
- > : Or, more generally, how the heck can I get my file back?
- > : It wasn't huge, but I'm more interested in not having a
- > : corrupt file on my drive. (And the pursuit of knowledge...)
- > : Oh yes, I'm running System 6 (of course).
- >
- > I not a guru but I try <grunt>:
- >
- > The filetype of $05 is a pascal data file.
-
- NO IT ISN'T! Type $05 is an "extended" file, i.e. one with a resource
- fork. Type $04 is a "pascal area".
-
- The key block of an extended file contains two mini directory entries,
- one for the data fork and the other for the resource fork. Each of
- the forks can be either a seedling, sapling or tree file (storage
- types 1 through 3).
-
- Extended files are fully documented in ProDOS-8 technical note #25
- (Non-Standard Storage Types).
-
- In brief, the first half of the key block refers to the data fork, and
- the second half (at offset $0100) refers to the resource fork.
-
- Each mini directory entry contains the following information:
-
- Offset Size Function
- +0 Byte Storage type of this fork (1, 2 or 3)
- +1 Word Key block number for this fork
- +3 Word Blocks used by this fork
- +5 3 bytes EOF for this fork
-
- There may be more information following this, which is the Macintosh
- Finder information: this is only present if an extended file was
- copied from an HFS disk to a ProDOS disk, and can safely be ignored.
- --
- David Empson
-
- Internet: David.Empson@bbs.actrix.gen.nz EMPSON_D@kosmos.wcc.govt.nz
- Snail mail: P.O. Box 27-103, Wellington, New Zealand
-