Patent ID: 8898541

Claim:
A storage controller for use with a storage device comprising, a unit data storing portion configured to store therein plural pieces of unit data with data and a first error correcting code of the data as unit data and an error correcting code storing portion configured to store therein a second error correcting code of predetermined plural pieces of unit data so as to correspond to the predetermined plural pieces of unit data in the plural pieces of unit data, the storage controller comprising: an error correcting code managing portion having entries and being configured to manage a correspondence relationship between the predetermined plural pieces of unit data, and the second error code corresponding to the predetermined plural pieces of unit data; an address managing portion configured to manage a correspondence relationship between logical addresses and the entries in said error correcting code managing portion; and an error correcting portion configured to acquire one of the entries in said error correction managing portion corresponding to the logical address as an object of read from said address managing portion, and carry out error correction based on the predetermined plural pieces of unit data managed in the entry concerned, and the second error correcting code.