home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / apple2 / 17888 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  2.2 KB

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