📄 readme
字号:
# @(#)README 1.1 97/02/23 eric# I am enclosing 3 test programs that I use to verify theintegrity of an iso9660 disc. The first one (isodump) is prettysimple - it dumps to the screen the contents of the variousdirectories. The second one (isovfy) goes through and looks forproblems of one kind or another. To use, type something like "./isodump /dev/ramdisk" or"./isodump /dev/scd0", depending upon where the iso9660 disc is. Itstarts by displaying the files in the first sector of the rootdirectory. It has some pretty simple one letter commands that youcan use to traverse the directory tree. a - move back one sector. b - move forward one sector. g - go to new logical sector. q - quitThe a and b commands do not try and stop you from going past thebeginning or end of a sector, and the g command does not have any wayof knowing whether the sector you request is actually a directory ornot. The output is displayed in several columns. The first columnis the total length of the directory record for the file. The secondcolumn (in [] brackets) is the volume number. Next comes the startingextent number (in hex), and then comes the file size in bytes. Thencones the filename (not the Rock Ridge version), and this is preceededby an "*" if the file is a directory. After this is a summary of theRock Ridge fields present along with a display of the translation ofthe symbolic link name if the SL Rock Ridge record is present. I tailored this program for debugging some of the problemsthat I was having earlier. The idea is that you can tailor itto test for problems that you might be having, so it is not intendedas a be-all and end-all dump program. If you move to a sector that does not contain directoryinformation, the results are unpredictable. The second program, isovfy, is run in the same way as isodump,except that you do not have to do much except let it run. I have itwritten to verify all kinds of different things, and as people findother sorts of problems other tests could be added. The third program, dump.c, basically does a hexdump of the cd.This is screen oriented, and there are some simple commands: a - move back one sector. b - move forward one sector. f - enter new search string. + - search forward for search string. g - go to new logical sector. q - quit Note that with the 'g' command, sectors are always given inhex, and represent 2048 byte sectors (as on the cdrom). If you knowhow to decode a raw iso9660 directory, you can pick out the startingextent number from the hexdump and know where to go from there. Thestarting extent appears something like 30 bytes prior to the start ofthe iso9660 (not Rock Ridge) filename, and it appears in a 7.3.3format (meaning that it occupies 8 bytes, 4 in little endian format,and 4 in big endian format). Thus you should see a mirror image ofthe bytes when looking at the extent number. The isovfy program can also dump the contents of the pathtables, but this capability is commented out right now. Feel freeto enable this to see what is in the tables. Ultimately I may fixit so that this checks the integrity of the tables as well. The isovfy program gives warnings about things like files thathave a size of 0 but have an extent number assigned. The mkisofs programshould never do this, but the YM software does leave these around.I think it is probably harmless in the YM case.~
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -