• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

MKLINKSH A D04-Aug-20111.5 KiB3814

MakefileH A D08-Jul-20201.5 KiB3712

Makefile.manH A D14-Nov-19981.3 KiB319

READMEH A D23-Feb-19973.4 KiB7763

devdump.8H A D08-Feb-200656 31

devdump_man.mkH A D08-Feb-20061.3 KiB309

dump.cH A D05-May-202010.1 KiB460386

dump.mkH A D21-Apr-20131.7 KiB4620

isodebug.8H A D03-Sep-20203.2 KiB162157

isodebug.cH A D05-May-20208.8 KiB351286

isodebug.mkH A D21-Apr-20131.7 KiB4620

isodebug_man.mkH A D08-Feb-20061.3 KiB309

isodump.8H A D08-Feb-200656 31

isodump.cH A D05-May-202018 KiB772656

isodump.mkH A D21-Apr-20131.7 KiB4620

isodump_man.mkH A D08-Feb-20061.3 KiB309

isoinfo.8H A D24-May-201811.5 KiB456445

isoinfo.cH A D10-May-202056.1 KiB2,2881,889

isoinfo.mkH A D21-Apr-20131.8 KiB5225

isoinfo_man.mkH A D08-Feb-20061.3 KiB309

isovfy.8H A D08-Feb-200655 31

isovfy.cH A D05-May-202021.8 KiB900762

isovfy.mkH A D21-Apr-20131.7 KiB4620

isovfy_man.mkH A D08-Feb-20061.3 KiB309

README

1# @(#)README	1.1 97/02/23 eric
2#
3	I am enclosing 3 test programs that I use to verify the
4integrity of an iso9660 disc.  The first one (isodump) is pretty
5simple - it dumps to the screen the contents of the various
6directories.  The second one (isovfy) goes through and looks for
7problems of one kind or another.
8
9	To use, type something like "./isodump /dev/ramdisk" or
10"./isodump /dev/scd0", depending upon where the iso9660 disc is.  It
11starts by displaying the files in the first sector of the root
12directory.  It has some pretty simple one letter commands that you
13can use to traverse the directory tree.
14
15	a - move back one sector.
16	b - move forward one sector.
17	g - go to new logical sector.
18	q - quit
19
20The a and b commands do not try and stop you from going past the
21beginning or end of a sector, and the g command does not have any way
22of knowing whether the sector you request is actually a directory or
23not.
24
25	The output is displayed in several columns.  The first column
26is the total length of the directory record for the file.  The second
27column (in [] brackets) is the volume number.  Next comes the starting
28extent number (in hex), and then comes the file size in bytes.  Then
29cones the filename (not the Rock Ridge version), and this is preceeded
30by an "*" if the file is a directory.  After this is a summary of the
31Rock Ridge fields present along with a display of the translation of
32the symbolic link name if the SL Rock Ridge record is present.
33
34	I tailored this program for debugging some of the problems
35that I was having earlier.  The idea is that you can tailor it
36to test for problems that you might be having, so it is not intended
37as a be-all and end-all dump program.
38
39	If you move to a sector that does not contain directory
40information, the results are unpredictable.
41
42	The second program, isovfy, is run in the same way as isodump,
43except that you do not have to do much except let it run.  I have it
44written to verify all kinds of different things, and as people find
45other sorts of problems other tests could be added.
46
47	The third program, dump.c, basically does a hexdump of the cd.
48This is screen oriented, and there are some simple commands:
49
50	a - move back one sector.
51	b - move forward one sector.
52	f - enter new search string.
53	+ - search forward for search string.
54	g - go to new logical sector.
55	q - quit
56
57
58	Note that with the 'g' command, sectors are always given in
59hex, and represent 2048 byte sectors (as on the cdrom).  If you know
60how to decode a raw iso9660 directory, you can pick out the starting
61extent number from the hexdump and know where to go from there.  The
62starting extent appears something like 30 bytes prior to the start of
63the iso9660 (not Rock Ridge) filename, and it appears in a 7.3.3
64format (meaning that it occupies 8 bytes, 4 in little endian format,
65and 4 in big endian format).  Thus you should see a mirror image of
66the bytes when looking at the extent number.
67
68	The isovfy program can also dump the contents of the path
69tables, but this capability is commented out right now.  Feel free
70to enable this to see what is in the tables.  Ultimately I may fix
71it so that this checks the integrity of the tables as well.
72
73	The isovfy program gives warnings about things like files that
74have a size of 0 but have an extent number assigned.  The mkisofs program
75should never do this, but the YM software does leave these around.
76I think it is probably harmless in the YM case.~
77