# US 2023/0409222 A1 · System and method for indexing a data item in a data storage system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0409222 A1
- Document ID: US20230409222A1
- Status: Published application
- Kind: A1
- Application number: 18/461,261
- Filed: 2023-09-05
- Published: 2023-12-21
- Earliest claimed: 2021-04-30
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Ovad Somech; Assaf Natanzon; Idan Zach; Aviv Kuvent; Yair Toaff; Elizabeth Firman; David Spinadel
- Web page: https://patentgrep.com/patent/US20230409222A1

## CPC

- G06F 3/064: {Management of blocks}
- G06F 16/9017: {using directory or table look-up (use of a directory or look-up table in file systems G06F16/13)}
- G06F 3/0626: {Reducing size or complexity of storage systems}
- G06F 3/0671: {In-line storage system}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method for indexing a data item in a data storage system includes: dividing the data item into one or more large blocks; dividing each large block into one or more small blocks; calculating a strong hash value for each of the small blocks and storing a list of strong hash values with a pointer to a location of the large block; from the list of strong hash values calculated for each large block, selecting one or more representative hash values for the large block; and compiling a sparse index including an entry for each large block. Each entry is based on the representative hash values and a pointer to the list of strong hash values for each large block.

## Claims

### Claim 1

A computer-implemented method for indexing a data item in a data storage system, the method comprising:
dividing the data item into one or more large blocks;
dividing each large block into a plurality of small blocks;
calculating a strong hash value for each of the small blocks of a respective large block and storing a respective list of the strong hash values calculated for the respective large block with a pointer to a location of the respective large block;
from the respective list of strong hash values calculated for the respective large block, selecting one or more representative hash values for the respective large block; and
compiling a sparse index comprising an entry for each large block, wherein a respective entry for the respective large block is based on the one or more representative hash values selected for the respective large block and a pointer to the respective list of strong hash values for the respective large block.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein selecting the one or more representative hash values uses a determinative process.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the determinative process comprises selecting one or more largest hash values.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein two representative hash values are selected.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein compiling the sparse index includes calculating a weak hash for each representative hash value.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein compiling the sparse index includes compressing each pointer by compressing a file path for the list.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein compressing each pointer includes storing a hash value of a file path for the list, an indication of the corresponding large block location within the data item and a file size indication for the data item, wherein a length of the hash value of the file path is based on the file size of the data item.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the sparse index is stored in a memory, and one or more lists of strong hash values are stored in a disk storage.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein each strong hash has about 20 bytes.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, further comprising:
performing a data item lookup including:
obtaining a query list of strong hash values corresponding to an incoming data item;
checking the query list of strong hash values against the sparse index for matches; and
retrieving a list of strong hash values for a positive match and checking for a match against the incoming data item.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein receiving the query list of strong hash values corresponding to the incoming data item comprises:
dividing the incoming data item into one or more large query blocks;
dividing each large query block into a plurality of small query blocks; and
calculating a strong hash value for each of the small query blocks and generating the query list of strong hash values by selecting one or more representative query hash values for the one or more large query blocks.

### Claim 12 (depends on 10)

The computer-implemented method of claim 10, further comprising, in response to a match against the incoming data item:
determining a location of a matching large block corresponding to the list of strong hash values retrieved for the positive match; and
writing, at an intended location for the incoming data item, a reference to the location of the matching large block.

### Claim 13 (depends on 1)

The computer-implemented method of claim 1, further comprising:
generating a log recording one or more changes made to the data storage system over a defined period of time; and
after the defined period of time:
identifying one or more large blocks that have been changed;
updating a list of strong hash values for each of the one or more changed large blocks;
selecting new representative hash values for each of the one or more changed large blocks; and
recompiling the sparse index based on the new representative hash values.

### Claim 14

A non-transitory computer-readable medium having processor-executable instructions stored thereon for indexing a data item in a data storage system, wherein the processor-executable instructions, when executed, facilitate performance of the following:
dividing the data item into one or more large blocks;
dividing each large block into a plurality of small blocks;
calculating a strong hash value for each of the small blocks of a respective large block and storing a respective list of the strong hash values calculated for the respective large block with a pointer to a location of the respective large block;
from the respective list of strong hash values calculated for the respective large block, selecting one or more representative hash values for the respective large block; and
compiling a sparse index comprising an entry for each large block, wherein a respective entry for the respective large block is based on the one or more representative hash values selected for the respective large block and a pointer to the respective list of strong hash values for the respective large block.

### Claim 15

A data storage system for indexing a data item, comprising:
one or more memories having processor-executable instructions stored thereon; and
one or more processors configured to execute the processor-executable instructions to facilitate performance of the following:
dividing the data item into one or more large blocks;
dividing each large block into a plurality of small blocks;
calculating a strong hash value for each of the small blocks of a respective large block and storing a respective list of the strong hash values calculated for the respective large block with a pointer to a location of the respective large block;
from the respective list of strong hash values calculated for the respective large block, selecting one or more representative hash values for the respective large block; and
compiling a sparse index comprising an entry for each large block, wherein a respective entry for the respective large block is based on the one or more representative hash values selected for the respective large block and a pointer to the respective list of strong hash values for the respective large block.
