12.07.2015 Views

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FLAGGINGThe condition of a track surface is indicated to <strong>the</strong> disk storage module, and thus to <strong>the</strong>controlling program, by track flags recorded as part of every sector identifier on a track.The track flags are two indicator bits that are set to represent one of four possible surfaceconditions: good original, defective original, good alternate, and defective alternate.Cylinders 1 to 3 are used for alternate tracks when a track in cylinders 4 through 202 isfound to be defective. Figure 15-8 shows <strong>the</strong> correlation between sector identifier bytesrecorded on <strong>the</strong> disk and <strong>the</strong> control information word used by read and write commands.0 1 2 9 10 11 15<strong>System</strong>/7 controlinformation wordF C T S11111111111106 70 7 05 7Sector ID bytesDefective track —IAlternate trackIII L III 11110 = Upper track1 = Lower trackFlag byte Cylinder byte Sector byteTwo cycliccheck bytesFigure 15-8. Correlation between <strong>System</strong>/7 word in storage and sector ID on disk15-26 GA34-0003Bits 6 and 7 in <strong>the</strong> flag byte of <strong>the</strong> sector identifier in each sector are used to indicate<strong>the</strong> surface condition of <strong>the</strong> track in which <strong>the</strong> sector resides. Bit 6 alone indicates that<strong>the</strong> track is defective, and bit 7 alone indicates that <strong>the</strong> track is an alternate. When bothbits equal 0, <strong>the</strong> track is an original "good" track. Both bits set to 1 indicates a defectivealternate track. A defective track in cylinder 0 requires disk repair if used for IPL data.When a track with a bad spot is discovered, it must be marked defective and <strong>the</strong> programmust assign an alternate track to replace <strong>the</strong> entire defective track. A format track operationmust first be performed on <strong>the</strong> assigned alternate track to identify it as an alternate.The formatting operation writes sector identifiers with flag bits 6 and 7 equal to 0 and 1,respectively, and with C and S bytes containing <strong>the</strong> identifiers from <strong>the</strong> defective track.Then, any recoverable data from <strong>the</strong> defective track must be written on <strong>the</strong> correspondingsectors of <strong>the</strong> alternate track. Finally, <strong>the</strong> defective track must be reformatted to identifyit as a defective track. This reformatting operation writes sector identifiers with fin hits6 and 7 equal to 1 and 0, respectively, and with C and S bytes containing <strong>the</strong> identifiersfrom <strong>the</strong> alternate track.Should an alternate track be defective, it should be reformatted to identify it as defective.This is done by writing sector identifiers with flag bits 6 and 7 both equal to 1, and with Cand S bytes containing <strong>the</strong> same identifiers that <strong>the</strong>y originally held.The track identifier fields are summarized as follows:Good: Bits 6 and 7 of <strong>the</strong> F byte are both 0. The C and S bytes contain <strong>the</strong> cylinder,track, and sector addresses that are correct for that track.Defective: Bit 6 is 1 and bit 7 is 0 in <strong>the</strong> F byte. The C and S bytes contain <strong>the</strong> cylinder,track, and sector addresses from <strong>the</strong> alternate track.Good alternate: Bit 6 is 0 and bit 7 is 1 in <strong>the</strong> F byte. The C and S bytes contain <strong>the</strong>cylinder, track, and sector addresses from <strong>the</strong> defective track.Defective alternate: Bits 6 and 7 of <strong>the</strong> F byte are both 1. The C and S bytes contain <strong>the</strong>cylinder, track, and sector addresses originally assigned to <strong>the</strong>m.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!