📄 whatsnew-dec09,1995.html
字号:
<HTML><HEAD><TITLE>Data Test Program (dt) December 9, 1995</TITLE></HEAD><BODY BGCOLOR="#D19275"><CENTER><H2><STRONG>What's New as of December 9, 1995</STRONG></H2></CENTER><H2>Changes For This Release</H2>The following changes have been made to <I>dt</I> Version 9.0:<UL><LI>Fixed a problem checking pad bytes when doing long reads ofshort records (this was discovered by someone testing tapes).<LI>For systems which support higher serial line speeds, you can nowselect baud rates of 57600, 76800, and 115200. Platinum (ptos)now supports 57600 and 115200 (thank-you Dennis Paradis).<LI>Added the ability to read/write blocks using logical block data(lbdata) option. While this new feature was added specificallyas a counterpart to SCSI Write Same (disks) lbdata option, thisoption can be used with any device and/or data stream.<LI>For disk devices, the "min=" and "incr=" values now default to 512,when variable length transfers are requested (previously defaultedto 1 which was great for tapes, but not so good for block devices).[ A future version of <I>dt</I> will obtain the device block size via the new DEVGETINFO ioctl() now available in Platinum (ptos). ]<LI>Removed "enable=ade" (Address Data Exception) test option.This was used to test kernel unaligned data exception fixups,but it's seldom (if ever) used, and it's time to cleanup code.<LI>Added "ttymin=" option for setting the VMIN value for serial linetesting. Also fixed problem where VMIN got set incorrectly if theblock size was greater than 255 (VMIN is a u_char on Digital Unix).</UL><H2>What is Logical Block Data (lbdata) Format?</H2>This feature allows reading/writing of a 4-byte (32-bit) logicalblock address at the beginning of each data block tested. At thepresent time, the block number is stored using SCSI byte ordering(big-endian), which matchs what the SCSI Write Same command does.<P>Several new <I>dt</I> options have been added for this feature:<PRE> lba=value Set starting block used w/lbdata option. lbs=value Set logical block size for lbdata option. [ ...as well as... ] enable=lbdata Logical block data. (Default: disabled)</PRE>If this feature is enabled without specifying other options, theblock size (lbs) defaults to 512, and the starting block address(lba) defaults to 0. Specifying "lba" or "lbs" implicitly turnson the "lbdata" feature.<BLOCKQUOTE>NOTE: The logical block is *always* inserted at the beginning ofeach data block, not every "lbs" bytes (WRT to variable length opts).Also, the block number overwrites what the previous pattern byteswould have been (again matching the SCSI Write Same method). Also,enabling this feature will cause a degradation in performance stats.</BLOCKQUOTE><P>If people would like an option to have the logical block stored inlittle-endian format, I'll consider adding an option *if* requested.<P>Of course, the data verification routines have been modified toverify the logical block # matches the expected, and reports anymis-matches.<P>The "lbdata" feature has seen limited testing, but I know many peoplehave requested this ability in the past (sorry 'jag', you won't see it...).<P>As usual, if you encounter any problems with <I>dt</I>, send mail directlyto me rmiller@zk3.dec.com (this is not a supported utility, so no QARs please!).<P><CENTER><B>Location:</B> <I>wasted:~rmiller/dt.d/{dt,dt-ptos}</I></CENTER><CENTER>or via</CENTER><CENTER><A HREF="../dt.html"><B>URL:</B> <I>http://www.zk3.dec.com/~rmiller/dt.html</I></A></CENTER><P>NOTE: The 'ptos' version is necessary for Platinum (AIO library changes).<HR><A HREF="mailto:rmiller@zk3.dec.com"><IMG SRC="../gifs/mailbox.gif" ALT="Mail"></A>Send mail to admin of this page: <EM>rmiller@zk3.dec.com</EM> <A HREF="../index.html"><IMG SRC="../gifs/home04.gif" ALT="Home"></A>To Robin's home page.<P>Last modified: February 22, 1996<HR><H2>Examples:</H2><HR SIZE=5 NOSHADE><PRE>NOTE: The "lbs" values used here are for <I>od</I>'s benefit (any value is valid).<HR>% <B>dt of=- pattern="Just Testing Man" count=3 enable=lbdata disable=stats | od -c +0.</B>0000000 \0 \0 \0 \0 T e s t i n g M a n0000016 J u s t T e s t i n g M a n*0000512 \0 \0 \0 001 T e s t i n g M a n0000528 J u s t T e s t i n g M a n*0001024 \0 \0 \0 002 T e s t i n g M a n0001040 J u s t T e s t i n g M a n*0001536% <HR NOSHADE>% <B>dt of=- count=1 lbs=64 disable=stats | od -x +0.</B>0000000 0000 0000 9c39 39c3 9c39 39c3 9c39 39c30000016 9c39 39c3 9c39 39c3 9c39 39c3 9c39 39c3*0000064 0000 0100 9c39 39c3 9c39 39c3 9c39 39c30000080 9c39 39c3 9c39 39c3 9c39 39c3 9c39 39c3*0000128 0000 0200 9c39 39c3 9c39 39c3 9c39 39c30000144 9c39 39c3 9c39 39c3 9c39 39c3 9c39 39c3*0000192 0000 0300 9c39 39c3 9c39 39c3 9c39 39c30000208 9c39 39c3 9c39 39c3 9c39 39c3 9c39 39c3*0000256 0000 0400 9c39 39c3 9c39 39c3 9c39 39c30000272 9c39 39c3 9c39 39c3 9c39 39c3 9c39 39c3*0000320 0000 0500 9c39 39c3 9c39 39c3 9c39 39c30000336 9c39 39c3 9c39 39c3 9c39 39c3 9c39 39c3*0000384 0000 0600 9c39 39c3 9c39 39c3 9c39 39c30000400 9c39 39c3 9c39 39c3 9c39 39c3 9c39 39c3*0000448 0000 0700 9c39 39c3 9c39 39c3 9c39 39c30000464 9c39 39c3 9c39 39c3 9c39 39c3 9c39 39c3*0000512% <HR NOSHADE>% <B>dt of=- count=1 lba=100 lbs=16 pattern=incr disable=stats | od -txC</B>0000000 00 00 00 64 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f0000020 00 00 00 65 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f0000040 00 00 00 66 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f0000060 00 00 00 67 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f0000100 00 00 00 68 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f0000120 00 00 00 69 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f0000140 00 00 00 6a 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f0000160 00 00 00 6b 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f0000200 00 00 00 6c 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f0000220 00 00 00 6d 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f0000240 00 00 00 6e a4 a5 a6 a7 a8 a9 aa ab ac ad ae af0000260 00 00 00 6f b4 b5 b6 b7 b8 b9 ba bb bc bd be bf0000300 00 00 00 70 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf0000320 00 00 00 71 d4 d5 d6 d7 d8 d9 da db dc dd de df0000340 00 00 00 72 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef0000360 00 00 00 73 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff0000400 00 00 00 74 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f0000420 00 00 00 75 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f0000440 00 00 00 76 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f0000460 00 00 00 77 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f0000500 00 00 00 78 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f0000520 00 00 00 79 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f0000540 00 00 00 7a 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f0000560 00 00 00 7b 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f0000600 00 00 00 7c 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f0000620 00 00 00 7d 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f0000640 00 00 00 7e a4 a5 a6 a7 a8 a9 aa ab ac ad ae af0000660 00 00 00 7f b4 b5 b6 b7 b8 b9 ba bb bc bd be bf0000700 00 00 00 80 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf0000720 00 00 00 81 d4 d5 d6 d7 d8 d9 da db dc dd de df0000740 00 00 00 82 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef0000760 00 00 00 83 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff0001000% <HR NOSHADE><CENTER>Example showing compatability between <I>scu</I> and <I>dt</I>:</CENTER><HR>% <B>disklabel rz0</B>Invalid disk label (label is corrupted, or disk is unlabeled)% <B>dt of=/dev/rrz0c min=10k max=64k count=500 enable=lbdata</B>Write Statistics: Total records processed: 500 with min=10240, max=65536, incr=512 Total bytes transferred: 18206720 (17780.000 Kbytes, 17.363 Mbytes) Average transfer rates: 1933457 bytes/sec, 1888.142 Kbytes/sec Total passes completed: 0/1 Total errors detected: 0/1 Total elapsed time: 00m09.41s Total system time: 00m00.26s Total user time: 00m00.93sRead Statistics: Total records processed: 500 with min=10240, max=65536, incr=512 Total bytes transferred: 18206720 (17780.000 Kbytes, 17.363 Mbytes) Average transfer rates: 1667791 bytes/sec, 1628.702 Kbytes/sec Total passes completed: 1/1 Total errors detected: 0/1 Total elapsed time: 00m10.91s Total system time: 00m00.26s Total user time: 00m07.63sTotal Statistics: Output device/file name: /dev/rrz0c (Device: RZ28, type=disk) Data pattern read/written: 0x39c39c39 Total records processed: 1000 with min=10240, max=65536, incr=512 Total bytes transferred: 36413440 (35560.000 Kbytes, 34.727 Mbytes) Average transfer rates: 1786432 bytes/sec, 1744.563 Kbytes/sec Total passes completed: 1/1 Total errors detected: 0/1 Total elapsed time: 00m20.38s Total system time: 00m00.53s Total user time: 00m08.56s Starting time: Mon Nov 20 14:34:20 1995 Ending time: Mon Nov 20 14:34:40 1995% <B>scu -f /dev/rrz0c dump media lba 100</B>Reading 1 block (100 - 100) on /dev/rrz0c (RZ28)...Record Number 1 (Starting Block 100)00000000 00 00 00 64 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000028 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000056 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000084 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000112 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000140 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000168 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000196 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000224 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000252 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000280 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000308 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000336 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000364 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000392 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000420 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000448 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000476 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39 00000504 39 9c c3 39 39 9c c3 39 % % <B>scu -f /dev/rrz0c read media limit 18206720 popts lbdata</B>Reading 35560 blocks (0 - 35559) on /dev/rrz0c (RZ28) using pattern 0x39c39c39...% <HR NOSHADE><CENTER>Forced errors to demonstrate error report formats:</CENTER><HR>% <B>dt if=/dev/rrz0c count=1 disable=stats</B>dt: Error number 1 occurred on Sat Dec 9 15:18:49 1995dt: Data compare error at byte 0 in record number 1dt: Relative block number where the error occcured is 0dt: Data expected = 0x39, data found = 0, byte count = 512dt: The incorrect data starts at address 0x140010000 (marked by asterisk '*')dt: Dumping Data Buffer (base = 0x140010000, offset = 0, limit = 64 bytes):0x140010000 *00 00 00 00 39 9c c3 39 39 9c c3 39 39 9c c3 390x140010010 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 390x140010020 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 390x140010030 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39% <B>dt if=/dev/rrz0c lbs=100 count=1 disable=stats</B>dt: Error number 1 occurred on Sat Dec 9 15:19:58 1995dt: Data compare error at byte 100 in record number 1dt: Relative block number where the error occcured is 1dt: Block expected = 0x00000001, block found = 0x399cc339, byte count = 512dt: The incorrect data starts at address 0x140010064 (marked by asterisk '*')dt: Dumping Data Buffer (base = 0x140010000, offset = 100, limit = 64 bytes):0x140010044 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 390x140010054 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 390x140010064 *39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 390x140010074 39 9c c3 39 39 9c c3 39 39 9c c3 39 39 9c c3 39% </PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -