发明名称 FILE PROCESSING METHOD AND STORAGE DEVICE
摘要 A file processing method and a storage device are disclosed. In the method, a storage device receives T files that are to be stored in the RAID, and determines a sequence number of a check block in a stripe of the RAID. The storage device repeatedly obtains a data block of the Kth file in the T files as the Kth data block in the stripe, where a value of K progressively increases from 1 to T, and the value of K is not equal to the sequence number of the check block in the stripe. After computing the check block according to data blocks, the storage device writes, into the T disks, the data blocks and the obtained check block in the stripe. By using the foregoing method, one file can be written into one disk of the RAID while ensuring security of file storage.
申请公布号 US2015095573(A1) 申请公布日期 2015.04.02
申请号 US201414567588 申请日期 2014.12.11
申请人 HUAWEI TECHNOLOGIES CO., LTD. 发明人 KONG Han;WANG Jing
分类号 G06F3/06 主分类号 G06F3/06
代理机构 代理人
主权项 1. A file processing method performed by a storage device for storing a file in a redundant array of independent disks (RAID), comprising: receiving T files that are to be stored in the RAID, wherein a value of the T is no less than 3, and the value of the T is equal to the number of disks that form the RAID; determining a sequence number of a check block in a stripe of the RAID; repeatedly obtaining a data block, to be written into a disk, of the Kth file in the T files as the Kth data block in the stripe, wherein a value of K progressively increases from 1 to T, and the value of K is not equal to the sequence number of the check block in the stripe; computing the check block in the stripe according to data blocks in the stripe; and writing, into the T disks, the data blocks in the stripe and the obtained check block in the stripe, wherein each block is written into one disk.
地址 Shenzhen CN