home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / hp / 14283 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  6.8 KB

  1. From: cfb@hpfcmgw.FC.HP.COM (Charlie Brett)
  2. Date: Mon, 21 Dec 1992 17:26:13 GMT
  3. Subject: Re: LIF Disk format - Anybody??
  4. Message-ID: <17780302@hpfcmgw.FC.HP.COM>
  5. Organization: HP Fort Collins, CO
  6. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!hpfcmgw!cfb
  7. Newsgroups: comp.sys.hp
  8. References: <1992Dec15.101230.10804@vax.oxford.ac.uk>
  9. Lines: 150
  10.  
  11.  
  12. There used to be a document printed by Hewlett Packard describing the
  13. LIF format. It was titled:
  14.  
  15.                       LIF
  16.            Logical Interchange Format
  17.  
  18.      Directory Organization & Record Format
  19.              for Data Interchange
  20.  
  21.  
  22.  
  23. The part number was 5955-2676 and it was printed January, 1982. You might
  24. still be able to order it from HP or find someone locally that could copy
  25. it for you.
  26. Here's a quick description that might help users trying to read the format.
  27.  
  28. The volume format is linear. At the beginning is a volume label, followed
  29. by a directory, then the user files.
  30.  
  31.  
  32. Start of Media                                              End of Media
  33. |                                                                      |
  34. |                                                                      |
  35. |             -----------------------------------------------          |
  36. |           --|------------------------------               |          |
  37. |         --|-|------------------           |               |          |
  38. |       --|-|-|-----            |           |               |          |
  39. |       | | | |    |            |           |               |          |
  40. ------------------------------------------------------------------------
  41. |      | | | | |            |          |                  |       |    |
  42. |      |1|2|3|4| File #1    | File #2  |  File #3         |File #4|    |
  43. |      | | | | |            |          |                  |       |    |
  44. |      | | | | |            |          |                  |       |    |
  45. ------------------------------------------------------------------------
  46.    |   \       /\                                                      /
  47.    |    -------  ------------------------------------------------------
  48.    |       |                             |
  49.    |       Directory                User Files
  50.    |
  51.    Volume label
  52.  
  53.  
  54. The volume label is 128 (16 bit) words (256 bytes). With the following layout.
  55.  
  56.        WORD  (16 bits)                   CONTENTS
  57.        ------------------------------------------------------------------
  58.          0                      100000 OCTAL (LIF ID)
  59.        ------------------------------------------------------------------
  60.          1
  61.          2              VOLUME LABEL (0-6 ASCII CHARACTERS)
  62.          3
  63.        ------------------------------------------------------------------
  64.          4
  65.          5     DIRECTORY START ADDRESS (RECORD NUMBER. USUALLY 2)
  66.        ------------------------------------------------------------------
  67.          6            100000 OCTAL (REQUIRED BY HP3000 SYSTEMS)
  68.        ------------------------------------------------------------------
  69.          7                       DUMMY (SET TO 0)
  70.        ------------------------------------------------------------------
  71.          8
  72.          9               LENGTH OF DIRECTORY (IN RECORDS)
  73.        ------------------------------------------------------------------
  74.         10               VERSION (0 FOR NO EXTENSIONS)
  75.        ------------------------------------------------------------------
  76.         11                          SET TO 0
  77.        ------------------------------------------------------------------
  78.         12-20                 LEVEL 1 EXTENSIONS
  79.        ------------------------------------------------------------------
  80.         21-126    RESERVED FOR EXTENSIONS AND FUTURE USE (SET TO 0)
  81.        ------------------------------------------------------------------
  82.         127      RESERVED BY HP250 SYSTEMS FOR MEDIA MAINTENANCE WORD
  83.        ------------------------------------------------------------------
  84.  
  85. If VERSION is set to 1, then the LEVEL 1 EXTENSIONS is set to:
  86.  
  87.        WORD  (16 bits)                   CONTENTS
  88.        ------------------------------------------------------------------
  89.         12
  90.         13                          TRACKS PER SURFACE
  91.        ------------------------------------------------------------------
  92.         14
  93.         15                         SURFACES PER MEDIUM
  94.        ------------------------------------------------------------------
  95.         16
  96.         17                          SECTORS PER TRACK
  97.        ------------------------------------------------------------------
  98.  
  99.  
  100. Each directory entry is 16 (16 bit) words (32 bytes). The format is:
  101.  
  102.  
  103.        WORD  (16 bits)                   CONTENTS
  104.        ------------------------------------------------------------------
  105.          0          |
  106.          1          |
  107.          2          |   FILENAME (1-10 ASCII CHARS WITH TRAILING BLANKS)
  108.          3          |
  109.          4          |
  110.        ------------------------------------------------------------------
  111.          5          |                      FILE TYPE
  112.        ------------------------------------------------------------------
  113.          6          |
  114.          7          |            STARTING ADDRESS (RECORD NUMBER)
  115.        ------------------------------------------------------------------
  116.          8          |
  117.          9          |               LENGTH OF FILE (IN RECORDS)
  118.        ------------------------------------------------------------------
  119.         10          |
  120.         11          |             TIME OF CREATION (12 BCD DIGITS)
  121.         12          |
  122.        ------------------------------------------------------------------
  123.         13          | L |                VOLUME NUMBER
  124.        ------------------------------------------------------------------
  125.         14          |
  126.         15          |                   IMPLEMENTATION
  127.        ------------------------------------------------------------------
  128.  
  129.  
  130. FILE TYPE is a signed word with the following defined types:
  131.  
  132.  
  133.         0 - Purged file
  134.         1 - ASCII file
  135.        -2 - Binary file
  136.  
  137. Other file types are dependent on the operating system.
  138.  
  139. TIME OF CREATION is 12 BCD digits is the form YYMMDDHHMMSS (Year, Month, Day,
  140. Hour, Minute, Second). This field may contain a version number on systems
  141. that do not use a real time clock. If the Year and Month fields are 0, then
  142. the rest of the digits represent a version number.
  143.  
  144. L flag in VOLUME NUMBER is 0 if this is not the last volume, 1 if it is.
  145.  
  146. VOLUME NUMBER is a 14-bit unsigned number. 0 not a valid.
  147.  
  148. IMPLEMENTATION is a file type implementation specific field. It must be 0 for
  149. any interchange file types (ie. 1 and -2). It contains information such as
  150. load address.
  151.  
  152.  
  153.  
  154. The document provides more detail and should be refered to if more information
  155. is required.
  156.  
  157.                Charlie Brett - HP Ft. Collins, CO
  158.  
  159.  
  160. These comments are only my opinion and in no way represents Hewlett Packard ...
  161.