Patent ID: 9720770
Date: 2017-08-01
CPC Classifications: G06F,G11C

Claim:
1. A method for constructing RAID in a storage system on the basis of flash memory, comprising: submitting a check code scheduling instruction to a RAID processor; reading a portion of data of data block of a current data band by a read-and-write processing unit of the RAID processor; setting a data block pointer to record an input position of a current data band corresponding to each respective flash memory unit; calculating a parity check code for the portion of data block read by the read-and-write processing unit according to a position of the current data block pointer, and writing a result to a corresponding position of a parity check code buffer; increasing length value of input portion of data block by the data block pointer; after finishing operation of all data block of a corresponding flash memory unit which means that the data block pointer returns to zero, increasing the amount of finishing data blocks by one; when a recorded amount of finishing data block achieves sum of amounts of data block included by the RAID data band, writing data in a parity check code buffer to a corresponding flash memory unit; and after all check codes are taken, resetting the check code buffer to zero, and starting calculation of the next RAID data band until finishing data operation.