Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xformtrk(1m) — Atari System V ue12

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hdelogger(1M)





   xformtrk(1M)                                                   xformtrk(1M)


   NAME
         xformtrk - convert bad track list from one format to another

   SYNOPSIS
         xformtrk -I opt -O opt [-t file] [-d ddefsdir] devtype

   DESCRIPTION
         xformtrk converts the input data, in any of the four input formats
         (bad blocks; track; head,cylinder pairs; logical-device,block pairs),
         to a file containing values in either track or head,cylinder format.
         All input entries must be in the same format and, for any format,
         must be one number or pair per line.  For example:
        bad blocks:   tracks:   head,cyl pair:   logical-dev,block offset pair:
           23348       1501         4 1234                  11 1234
          207608       2345         6 9182                  73 5678

         The output from xformtrk is displayed on stdout.

         Values for the bad blocks normally come from the output of
         hdelogger(1M).

         The options are:

         -I opt    Specify the input as either t for track; b for bad blocks;
                   c for head,cylinder sector; or d for logical-device,block
                   pairs, one entry per line.  For head,cylinder pairs, do not
                   input the byte offset or BFI (bytes from index).

         -O opt    Specify the output as either t for track or c for
                   head,cylinder, sector, one entry per line.

         -t file   Use the named file as input.  The format is either bad
                   block numbers; single track numbers; head,cylinder pairs;
                   or logical-device,block offset pairs, one number or pair
                   per line. For head,cylinder pairs, do not input the byte
                   offset or BFI (bytes from index).  When the -t option is
                   omitted, you are prompted to enter the data manually.

         -d ddefsdir
                   Use the directory ddefsdir rather than /etc/dskdefs/ to
                   find the entry for devtype.

         devtype   This is the device type found in /etc/dskdefs which
                   uniquely identifies the device (e.g., m323182).  See
                   ddefs(1M).

   EXAMPLE
         Convert the file badtrkfile from bad block numbers to head, cylinder,
         sector with the numbers referencing the first CDC WREN disk attached
         to the MVME323 controller.



   7/91                                                                 Page 1









   xformtrk(1M)                                                   xformtrk(1M)


                    xformtrk -I t -O c -t badtrkfile m323182


   SEE ALSO
         hdelogger(1M).

   FILES
         /etc/dskdefs/*
         /tmp/xf.device

   DIAGNOSTICS
         Exit Codes:

              0 - success

              1 - internal failure        unknown type or device, general
                                          error

              2 - I/O failure             files not found, read/write failure,
                                          etc.

              3 - bad command usage       syntax error within command line

              4 - user interrupt

   WARNINGS
         Currently only the b (bad block number) input option is supported.
         The output format corresponding to the bad block number input format
         should be c (head, cylinder, sector).  These formatting options are
         useful in converting the bad block numbers reported by hdelogger (1M)
         to a format accepted by dinit (1M).






















   Page 2                                                                 7/91





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026