摘要 |
Embodiments of the present invention provide a file processing method and a storage device. The method comprises: receiving T files to be stored in a RAID; determining a serial number of a verifying block in a first item of the RAID; acquiring a data block, of the Kth file in the T files, not being written in a memory, and using the data block of the Kth file as the Kth data block in the item, wherein a value of K ascends from 1 to T, and a value of K is not equal to the serial number of the verifying block in the item; acquiring the verifying block in the item according to the data block in the item; and writing the data block in the item and the acquired verifying block in the item into T memories. By means of the above method, the same file may be written into the same memory of the RAID on the basis of ensuring safety of file storage, and good energy-saving effect is achieved during file reading. |