# Hercules Version 3: System Messages: CU - CCKD Utilities

Messages issued by the cckd utility commands (cckdcdsk, cckdcomp and cckdswap) and cckd utility functions (cckd_chkdsk, cckd_comp and cckd_swap) are described here. The utility functions are called by both the utility commands and Hercules.

### Messages

Messages are in the format
HHCCU nnn t file message text
where nnn is the message number, t is either I, W or E, depending on the severity of the message. file will either be the part of the file name following the last slash (/ or \) when called by a utility command, or will be xxxx: file[n] where xxxx is the device number and n is the shadow file number when called by Hercules.

The file portion of the message is omitted below for brevity.

`HHCCU101I converting to endian-format`
  Meaning
    The file is in the wrong endian (byte order) format for the host architecture. The file is being converted to the host endian format endian-format.
  Issued by
    cckdutil.c functions cckd_comp and cckd_chkdsk
`HHCCU102I compress successful, n bytes released`
  Meaning
    The compress function successfully completed and free n bytes from the file. If n is 0, then the level 2 tables were repositioned to the beginning of the file in order.
  Issued by
    cckdutil.c function cckd_comp
`HHCCU103I file already compressed`
  Meaning
    The compress function determined that the file is already compressed. The file is not updated.
  Issued by
    cckdutil.c function cckd_comp
`HHCCU104I free space rebuilt`
  Meaning
    Free space errors were detected and free space has been successfully rebuilt
  Issued by
    cckdutil.c function cckd_chkdsk
`HHCCU300I number space images recovered`
  Meaning
    Recovery phase 1 completed, recovering number spaces (trks or blkgrps)
  Issued by
    cckdutil.c function cckd_comp
`HHCCU301I space[id] recovered offset offset len length`
  Meaning
    The space space (trk or blkgrp) was recovered at offset offset and length length. id is the trk or blkgrp number.
  Issued by
    cckdutil.c function cckd_comp
`HHCCU500W recovery not completed, file opened read-only`
  Meaning
    Phase 3 recovery did not complete because the file is not opened for write
  Action
    Omit the -ro option for cckdcdsk, or change the file permissions to enable the file to be opened for read-write for Hercules
  Issued by
    cckdutil.c function cckd_comp
`HHCCU501W recovery not completed, missing compression`
  Meaning
    Phase 3 recovery did not complete because one or more trk or blkgrp images were compressed using a compression (zlib or bzip2) that was not built into Hercules
  Action
    Processing terminates. The file has not been updated. Build Hercules with the missing compression libraries.
  Issued by
    cckdutil.c function cckd_comp
`HHCCU502W free space not rebuilt, file opened read-only`
  Meaning
    Free space errors were detected but the free space was not rebuilt because the file is not opened for write
  Action
    Omit the -ro option for cckdcdsk, or change the file permissions to enable the file to be opened for read-write for Hercules
  Issued by
    cckdutil.c function cckd_comp
`HHCCU600W forcing check level level[; reason]`
  Meaning
    Errors have been detected in the compressed file that warrant the escalation of the check level to level. An additional explanation reason may be supplied.
  Action
    At a minimum, free space will be rebuilt
  Issued by
    cckdutil.c function cckd_comp
`HHCCU601W cdevhdr inconsistencies found code=code`
  Meaning
    The space statistics in the cckddasd device header (cdevhdr) contain inconsistencies described by code. code is a 16-bit bit field and more than one bit may be on. See cckdutil.c for the different bit settings.
  Action
    At a minimum, free space will be rebuilt
  Issued by
    cckdutil.c function cckd_comp
  %s offset 0x%" I32_FMT "x len %d is out of bounds
`HHCCU602W space offset offset len length is out of bounds`
  Meaning
    The space space (trk, blkgrp or l2) either precedes the end of the L1 table (at the beginning of the file) or exceeds the end of the file
  Action
    The space will be recovered. If the space is an L2 table, then all tracks or block groups associated with the table will also be recovered.
  Issued by
    cckdutil.c function cckd_comp
`HHCCU603W space1 offset offset1 len length overlaps space2 offset offset2`
  Meaning
    The space space1 overlaps space space2.
  Action
    The spaces will be recovered. If either space is an L2 table, then all tracks or block groups associated with that table will also be recovered.
  Issued by
    cckdutil.c function cckd_comp
`HHCCU604W space l2 inconsistency: len length, size size`
  Meaning
    The space space (trk or blkgrp) has an inconsistent l2 entry. Either the length length is too small or is too large or exceeds the size size
  Action
    The space will be recovered.
  Issued by
    cckdutil.c function cckd_comp
`HHCCU610W free space errors detected`
  Meaning
    Free space is not consistent
  Action
    Free space will be rebuilt
  Issued by
    cckdutil.c function cckd_comp
`HHCCU620W space[id] hdr error offset offset: xxxxxxxxxx`
  Meaning
    A header error was found for space (trk or blkgrp) during validation. id is the trk or blkgrp number. The header is located at file offset offset. The contents of the 5 byte header is xxxxxxxxxx in hex.

    The first byte of the header should be either 00 (compress none), 01 (compress zlib) or 02 (compress bzip2).
    For ckd, the next two bytes is the cylinder (in big-endian byte order) and the two bytes after that is the head (also in big-endian byte order).
    For fba, the next four bytes is the block group number (in big-endian byte order).

    The header contains an invalid value. Either the offset is incorrect or the header has been overlaid.

  Action
    The space will be recovered
  Issued by
    cckdutil.c function cckd_comp
`HHCCU621W space[id] compressed using compression, not supported`
  Meaning
    During validation, the header for space (trk or blkgrp) indicates that the space was compressed using compression (zlib or bzip2) but support for that compression method was not built into Hercules. id is the trk or blkgrp number.
  Action
    Processing continues. However, no recovery will take place.
    Build Hercules with the specified compression library.
  Issued by
    cckdutil.c function cckd_comp
`HHCCU622W space[id] offset offset len length validation error`
  Meaning
    The space (trk or blkgrp) at offset offset and length length failed validation. id is the trk or blkgrp number. Either the space did not uncompress successfully or the uncompressed space contains some kind of error. This error is detected during check level 3 validation.
  Action
    The space will be recovered
  Issued by
    cckdutil.c function cckd_comp
`HHCCU700E open error: error text`
  Meaning
    Open failed for the file. The text associated with the error number is displayed.
  Action
    Processing for the file terminates.
  Issued by
    cckdccdsk.c, cckdcomp.c
`HHCCU701E fstat error: error text`
  Meaning
    The file status system call failed. The text associated with the error number is displayed.
  Action
    Function processing terminates. Probable Hercules logic error. Contact the hercules mailing list for assistance.
  Issued by
    cckdutil.c functions cckd_swapend, cckd_comp and cckd_chkdsk
`HHCCU702E lseek error offset offset: error text`
  Meaning
    File reposition to offset offset failed. The text associated with the error number is displayed.
  Action
    Function processing terminates. Probable Hercules logic error. Contact the hercules mailing list for assistance.
  Issued by
    cckdutil.c functions cckd_swapend, cckd_comp and cckd_chkdsk
`HHCCU703E read error rc=retcode offset offset len length: error text`
  Meaning
    A read failed at offset offset for length length. If retcode is not negative then the read was incomplete and the value indicates how many bytes were read. Otherwise the text associated with the error number is displayed.
  Action
    Function processing terminates. Possible Hercules logic error. Possible hardware error. Contact the hercules mailing list for assistance.
  Issued by
    cckdutil.c functions cckd_swapend, cckd_comp and cckd_chkdsk
`HHCCU704E write error rc=retcode offset offset len length: error text`
  Meaning
    A write failed at offset offset for length length. If retcode is not negative then the write was incomplete and the value indicates how many bytes were written. Otherwise the text associated with the error number is displayed.
  Action
    Function processing terminates. Possible Hercules logic error. Possible hardware error. Contact the hercules mailing list for assistance.
  Issued by
    cckdutil.c functions cckd_swapend, cckd_comp and cckd_chkdsk
`HHCCU705E malloc error, size size: error text`
  Meaning
    Malloc (allocate memory) failed for size size.
  Action
    Function processing terminates. Try reducing Hercules storage requirements (eg mainsize).
  Issued by
    cckdutil.c functions cckd_swapend, cckd_comp and cckd_chkdsk
`HHCCU706E calloc error, size size: error text`
  Meaning
    Calloc (allocate cleared memory) failed for size size.
  Action
    Function processing terminates. Try reducing Hercules storage requirements (eg mainsize).
  Issued by
    cckdutil.c functions cckd_swapend, cckd_comp and cckd_chkdsk
`HHCCU707E OPENED bit is on, use -f`
  Meaning
    The file OPENED bit is on in the cckd header but -f was not specified
  Action
    File processing terminates. Make sure the file is not in use. If it is not, try the command again specifying the -f option.
  Issued by
    cckdcdsk.c, cckdcomp.c
`HHCCU708E chkdsk errors`
  Meaning
    The utility called cckd_chkdsk for the file and it returned in error
  Action
    File processing terminates. Perform the actions suggested by the preceding cckd_chkdsk errors
  Issued by
    cckdcomp.c
`HHCCU900E dasd lookup error type=type cyls=cyls`
  Meaning
    The device type type from the device header along with the number of cylinders cyls did not match a table entry in dasdtab.c. Note that type is the last two bytes of the device type (eg 90 for a 3390 device type).
  Action
    Function processing terminates. Specify the correct file name or manually correct the device header.
  Issued by
    cckdutil.c function cckd_chkdsk
`HHCCU901E bad trksize: size1, expecting size2`
  Meaning
    The track size size1 from the device header does match the track size size2 from the table entry in dasdtab.c
  Action
    Function processing terminates. Specify the correct file name or manually correct the device header.
  Issued by
    cckdutil.c function cckd_chkdsk
`HHCCU902E bad number of heads: heads1, expecting heads2`
  Meaning
    The number of heads heads1 from the device header does match the number of heads heads2 from the table entry in dasdtab.c
  Action
    Function processing terminates. Specify the correct file name or manually correct the device header.
  Issued by
    cckdutil.c function cckd_chkdsk
`HHCCU903E bad `numl1tab': nbr1, expecting nbr2`
  Meaning
    The number of L1 table entries nbr1 in the cckd device header does not match the number calculated nbr2. The number calculated is the number of cylinders times the number of heads (ie the number of tracks) divided by 256, rounded up by 1 if there is a remainder.
  Action
    Function processing terminates. Specify the correct file name or manually correct the device headers.
  Issued by
    cckdutil.c function cckd_chkdsk
`HHCCU904E file too small to contain L1 table: %size1, need size2`
  Meaning
    The size of the file size1 is not large enough to contain all L1 table entries; the size required is size2. The minimum size of a cckd file is
    512 + 512 + ( 4 * number of L1 entries)
  Action
    Function processing terminates. Specify the correct file name.
  Issued by
    cckdutil.c function cckd_chkdsk
`HHCCU905E not enough file space for recovery`
  Meaning
    During phase 2 recovery, there is not enough space in the maximum file size to contain the rebuilt L2 tables. This is an unusual situation and probably indicates some kind of programming error.
  Action
    Function processing terminates. The file has not been updated. Contact the hercules mailing list for assistance.
  Issued by
    cckdutil.c function cckd_chkdsk
`HHCCU910E error during swap`
  Meaning
    Error occurred during cckd_swap(). See the preceding error messages.
  Issued by
    cckdutil.c function cckd_chkdsk
`HHCCU999E not a compressed file`
  Meaning
    The first 8 bytes of the file did not match an expected identifier. For a cckd file, the identifier must be either CKD_C370 or CKD_S370. For a cfba file, the identifier must be either FBA_C370 or FBA_S370.
  Action
    Function processing terminates. Specify the correct file name.
  Issued by
    cckdutil.c functions cckd_swapend, cckd_comp and cckd_chkdsk

If you have a question about Hercules, see the Hercules Frequently-Asked Questions page.

Last updated $Date$ $Revision$