liffix

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
REFERENCES
AUTHOR

NAME

liffix - fixes the medium size information in the volume header of a LIF image file

SYNOPSIS

liffix -m Mediumtype [-p] <LIF image file>

liffix -?

DESCRIPTION

The volume header of the LIF file system contains information about the size of the volume specified by the numbers of tracks per surface, number of surfaces and number of blocks per track. Some HP-IL controller do not initialize this values correctly which might worry software that works with LIF image files. The medium size of the lif image file can be checked with the lifstat program. liffix repairs the volume header of a LIF image file.

OPTIONS

-m

This mandatory option specifies the medium type. The following medium types are supported:

cass: Initializes a medium with the size of a HP82161A cassette
disk: Initializes a medium with the size of a HP9114B double sided disk
hdrive1: Initializes a medium with the size of a 640 KB disk
hdrive2: Initializes a medium with the size of a 2 MB disk
hdrive4: Initializes a medium with the size of a 4 MB disk
hdrive8: Initializes a medium with the size of a 8 MB disk
hdrive16: Initializes a medium with the size of a 16 MB disk

-p

Fix a LIF file system on a floppy disk. Note: this option is only supported on LINUX. Specify the floppy device instead of the lif-image-filename. See the LIFUTILS tutorial for details.

-?

Print a message giving the program usage to standard error.

EXAMPLES

If disk1.dat is a LIF disk image file with improper medium size information then

liffix -m disk disk1.dat

will fix the medium size information of disk1.dat The header is fixed with the parameters of the HP9114B double sided disk medium.

Note: a check is performed if the content of the image file fits to the size of the medium.

REFERENCES

The LIF disk format is documented in the HP-IL Interface Owners Manual for the HP-71 (Hewlett-Packard) with further details (particularly HP41 and HP75 file types) in the HP-41 Synthetic Quick Reference Guide (Jeremy Smith)

AUTHOR

liffix was written by Joachim Siebold, bug400@gmx.de using code from Tony Duell, ard@p850ug1.demon.co.uk and has been placed under the GNU Public License version 2.0