Blame genisoimage/diag/README

Packit 45fded
# @(#)README	1.1 97/02/23 eric
Packit 45fded
#
Packit 45fded
	I am enclosing 3 test programs that I use to verify the
Packit 45fded
integrity of an iso9660 disc.  The first one (isodump) is pretty
Packit 45fded
simple - it dumps to the screen the contents of the various
Packit 45fded
directories.  The second one (isovfy) goes through and looks for
Packit 45fded
problems of one kind or another.
Packit 45fded
Packit 45fded
	To use, type something like "./isodump /dev/ramdisk" or
Packit 45fded
"./isodump /dev/scd0", depending upon where the iso9660 disc is.  It
Packit 45fded
starts by displaying the files in the first sector of the root
Packit 45fded
directory.  It has some pretty simple one letter commands that you
Packit 45fded
can use to traverse the directory tree.
Packit 45fded
Packit 45fded
	a - move back one sector.
Packit 45fded
	b - move forward one sector.
Packit 45fded
	g - go to new logical sector.
Packit 45fded
	q - quit
Packit 45fded
Packit 45fded
The a and b commands do not try and stop you from going past the
Packit 45fded
beginning or end of a sector, and the g command does not have any way
Packit 45fded
of knowing whether the sector you request is actually a directory or
Packit 45fded
not.
Packit 45fded
Packit 45fded
	The output is displayed in several columns.  The first column
Packit 45fded
is the total length of the directory record for the file.  The second
Packit 45fded
column (in [] brackets) is the volume number.  Next comes the starting
Packit 45fded
extent number (in hex), and then comes the file size in bytes.  Then
Packit 45fded
cones the filename (not the Rock Ridge version), and this is preceeded
Packit 45fded
by an "*" if the file is a directory.  After this is a summary of the
Packit 45fded
Rock Ridge fields present along with a display of the translation of
Packit 45fded
the symbolic link name if the SL Rock Ridge record is present.
Packit 45fded
Packit 45fded
	I tailored this program for debugging some of the problems
Packit 45fded
that I was having earlier.  The idea is that you can tailor it
Packit 45fded
to test for problems that you might be having, so it is not intended
Packit 45fded
as a be-all and end-all dump program.
Packit 45fded
Packit 45fded
	If you move to a sector that does not contain directory
Packit 45fded
information, the results are unpredictable.
Packit 45fded
Packit 45fded
	The second program, isovfy, is run in the same way as isodump,
Packit 45fded
except that you do not have to do much except let it run.  I have it
Packit 45fded
written to verify all kinds of different things, and as people find
Packit 45fded
other sorts of problems other tests could be added.
Packit 45fded
Packit 45fded
	The third program, dump.c, basically does a hexdump of the cd.
Packit 45fded
This is screen oriented, and there are some simple commands:
Packit 45fded
Packit 45fded
	a - move back one sector.
Packit 45fded
	b - move forward one sector.
Packit 45fded
	f - enter new search string.
Packit 45fded
	+ - search forward for search string.
Packit 45fded
	g - go to new logical sector.
Packit 45fded
	q - quit
Packit 45fded
Packit 45fded
Packit 45fded
	Note that with the 'g' command, sectors are always given in
Packit 45fded
hex, and represent 2048 byte sectors (as on the cdrom).  If you know
Packit 45fded
how to decode a raw iso9660 directory, you can pick out the starting
Packit 45fded
extent number from the hexdump and know where to go from there.  The
Packit 45fded
starting extent appears something like 30 bytes prior to the start of
Packit 45fded
the iso9660 (not Rock Ridge) filename, and it appears in a 7.3.3
Packit 45fded
format (meaning that it occupies 8 bytes, 4 in little endian format,
Packit 45fded
and 4 in big endian format).  Thus you should see a mirror image of
Packit 45fded
the bytes when looking at the extent number.
Packit 45fded
Packit 45fded
	The isovfy program can also dump the contents of the path
Packit 45fded
tables, but this capability is commented out right now.  Feel free
Packit 45fded
to enable this to see what is in the tables.  Ultimately I may fix
Packit 45fded
it so that this checks the integrity of the tables as well.
Packit 45fded
Packit 45fded
	The isovfy program gives warnings about things like files that
Packit 45fded
have a size of 0 but have an extent number assigned.  The genisoimage program
Packit 45fded
should never do this, but the YM software does leave these around.
Packit 45fded
I think it is probably harmless in the YM case.~