lifstat

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
REFERENCES
AUTHOR

NAME

lifstat - A program to display statistics for a LIF image file

SYNOPSIS

lifstat [-p] <LIF image file>

lifstat [-p] <LIF image file> <block_number>

lifstat [-p] <LIF image file> <cylinder> <head> <sector>

lifstat -?

DESCRIPTION

lifstat is a program to display the block usage of a LIF image file. If lifstat is run with no arguments other than the name of the LIF image file, then 2 lines are printed to standard output giving the starting and ending blocks of the directory and the user file data. The blocks are specified both by their block number and by their cylinder/head/sector address.

If lifstat is run with one additional argument, then that argument is taken as a logical block number. A single line is written to standard output giving that block number, the equivalent cylinder/head/sector address and the file name of the file that contains that block.

If lifstat is run with 3 additional arguments, then these are taken to be the cylinder, head and sector numbers (in that order) of a block on the disk. The program then behaves as if one argument was given.

If the block number is part of the volume label or directory, or if it is not currently in use, then the ’file name’ is reported as Volume Label, System 3000 block, directory or unused as appropriate.

OPTIONS

-p

Print summary of LIF file system stats 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 program usage to standard error and exit.

EXAMPLES

If disk.dat is a LIF image file, then

lifstat disk.dat

will write a message to standard output giving the start and end blocks of the directory and user data. Similarly

lifstat disk.dat 37

will output the file name of the file containing block 37

REFERENCES

The format of a LIF disk directory is given in the HP-IL Interface Owners Manual for the HP-71 (Hewlett Packard)

AUTHOR

lifstat was written by Tony Duell, ard@p850ug1.demon.co.uk and has been placed under the GNU Public License version 2.0