Patent ID: 11893246
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method for calculating an index of a stripe where a strip is located for a disk, applied to RAID6 for obtaining strip head address in a pack to speed up reading and writing in the RAID6, the method comprising:
calculating a pack offset of a parity block according to a given disk index;
calculating an address of a strip where the parity block is located in the disk according to the pack offset;
comparing an address of a to-be-checked strip with the address of the strip where the parity block is located in the disk to determine whether the parity block is on the to-be-checked strip; and
calculating an index of a stripe where the to-be-checked strip is located by considering additional elements of the parity block relative to the to-be-checked strip in response to determining that the parity block is on the to-be-checked strip; or
calculating the index of the stripe where the to-be-checked strip is located directly in response to determining that the parity block is not on the to-be-checked strip.