发明名称 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 of a stripe of the RAID. The storage device obtains a data block of the Kth file in the T files as the Kth data block of 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 of 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 of the stripe. Using the foregoing method, one file can be written into one disk of the RAID while ensuring security of file storage.
申请公布号 US9223509(B2) 申请公布日期 2015.12.29
申请号 US201514711091 申请日期 2015.05.13
申请人 Huawei Technologies Co., Ltd. 发明人 Kong Han;Wang Jing
分类号 G06F12/00;G06F3/06;G06F17/30;G06F11/10 主分类号 G06F12/00
代理机构 Conley Rose, P.C. 代理人 Conley Rose, P.C. ;Rodolph Grant
主权项 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 of a stripe of the RAID; obtaining a data block, to be written into a disk, of the Kth file in the T files as the Kth data block of the stripe until all data blocks of the stripe are obtained, 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 of the stripe; computing the check block of the stripe according to data blocks of the stripe; and writing, into the T disks, the data blocks of the stripe and the obtained check block of the stripe, wherein each block is written into one disk.
地址 Shenzhen CN