From: burley@geech.gnu.ai.mit.edu (Craig Burley)
Newsgroups: comp.os.linux
Subject: Test Case for 1K-Block Corruption (Long)
Date: 17 Aug 92 19:56:21 GMT
Distribution: comp
Organization: Free Software Foundation 545 Tech Square Cambridge, MA 02139

Okay, here's my test case for intermittent corruption of 1024-byte blocks
read from disk.  If you don't have around 13MB free, you probably
shouldn't bother trying it, since that's roughly how much space is taken
when you run the GO script to set up the directories.

You should put the following into a file, then uudecode it.  Then, use
GNU tar or uncompress & pax to extract the files.  Read the comments in
the file named GO to figure everything else.

I don't have any particular suggestions as to what to do when you determine
whether the test case exhibits the bug I see on my system.  If it doesn't
after trying the diff command line more than, say, ten times, then your
system might not have the bug (or it might be less likely to be exposed
on your system).  But if you want to drop me an e-mail line either way, feel
free to do so.

--------
begin 644 SCSI0.tar.Z
M'YV01YX`&$BPH,&#"!,J7,BPH4.$("+>J%$#!("(&&%8Q!A1XT6.(&3,J'%#
M(X@:,F38L`'#!HT;-S#>&$GC(HR'.'/JW,D30)TY=,+(B0A`SILW='HF-(I4
MJ=.G4*-*G4H5YX@0+\2D<?-B#AH%(T`X>4*EB`X01-ZX.4$'!!TY>4#(J>/&
MS=8S;M&DF0,BC1D0>=[4`2&TS-JV6PF#()-&3IDQ=-[`!:%6L9DT;,J`!3$G
M#]`R;4#<24,'#>&VF<,`!1%C1A,AE(?.>4/YKQG'91;O7<,93I@Q94)$?%*Z
MC)S1<\JPZ/LW<)W-=\*XH;/<.8@QTMU.C@S"M^.\=_F2>7/'S7(Q==HF`8$F
MC!W#;+6G*4,F;Q@Z+L!NED(7/%^O9;#!!@B79>86;6.\T08<F.4F77USN9%7
M;G.,,4<:&L%AU!ERA!$:=V,X=I]F887171B-U::;8Y!)%M=;993Q7QIM8";4
M@1.>F.)ZV$FH81ETT!&78VRD$888;.2QV1E`]C6=<34&:5A;(M9GG%%R\*66
M"Q$%P5<>0"ZW7GOO@>`&;6F048:)=Z`!I)MR;%:<F76T(89QRV7FQAFES;&<
M9&9Z**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6D<J"2;T%/Y$A,B20-
M)$A3C+0A',*`==@=2V.LY"WK,`QFA@CG&X,+#$B2J?`O?#:!)]H*'I+A"*YN
M&9J`XY@^!"5;O)`CH&WX!467+/'`GCR.VT50ULHST2@CPL*3/70@/M9*%F#L
M8"4+>)0Z\E/62!C'6ER"X.,(?T5/R$.7\"GK)"J+E]PL',)%15<KMP"^E!!=
MTDUB1SD9$?KEOQ28GE+1N<?T,`=0P+B$)R&2(]3(%;`"8"4X#(<XX%UB!&R8
M`"RFK%R'"8!B;LLW\"DC0E:$E[VR!>A+W&@87*4"X!T#\E>NPZPXS&JFS;R9
M.#-GZLR=R3-[IL_\F4`S:`K-H4DTBZ;1/)I(,VDJS:7)-)NFTWR:4#-J2LVI
M236KIM6\FE@S:VK-K<DUNZ;7_)I@,VR*S;%)-LNFV3R;:#-MJLVUR3;;IMM\
(FW`S;LK-G0`S
`
end
--------

Have fun!
--

James Craig Burley, Software Craftsperson    burley@gnu.ai.mit.edu
Member of the League for Programming Freedom (LPF)
Newsgroups: comp.os.linux