Patent ID: 6279134
Filing Date: 2001-08-21
Classification: G06F,G11B

Abstract:
A method of controlling a storage device which is connected to a data processor unit, said data used for said data processor unit is stored in a storage medium, and said storage device includes a buffer memory having a plurality of segments, each segment being of a predetermined amount for temporarily holding the data to be stored in said storage medium, and a controller for controlling the storage of the data to said storage medium said method comprising:sequentially storing the data transferred from said data processor unit into said segments;selecting a first segment holding the data of a predetermined amount from said buffer memory to generate a first error correction code corresponding to the data held in said first segment;writing the data held in said first segment and said first error correction code into said storage medium;selecting a second segment in said buffer memory which holds the data of an amount less than said predetermined amount and has a lapse time more than a predetermined time from the data of the amount less than said predetermined amount has been written;reading out from said storage medium a supplemental data corresponding to a difference between a size of data held in said second segment and said predetermined amount;generating a second error correction code with respect to the data held in said second segment and said supplemental data; andwriting into said storage medium the data held in said second segment, said supplemental data, and said second error correction code.