# US 2025/0165170 A1 · Data storage method, apparatus, storage device, and computer-readable storage medium

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

- Number: US 2025/0165170 A1
- Document ID: US20250165170A1
- Status: Published application
- Kind: A1
- Application number: 19/029,393
- Filed: 2025-01-17
- Published: 2025-05-22
- Earliest claimed: 2022-08-05
- Assignees: Zhongshan Longsys Electronics Co., Ltd.
- Applicants: Zhongshan Longsys Electronics Co., Ltd.
- Inventors: Qiming BAO; Hui YIN
- Web page: https://patentgrep.com/patent/US20250165170A1

## CPC

- G06F 3/064: {Management of blocks}
- G06F 11/10: Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F 3/0602: {specifically adapted to achieve a particular effect}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data storage method includes: binding storage blocks, which are corresponding to each plane of each of a plurality of logical units in a storage device, to each other to form a superblock; performing, using a corresponding disk redundancy array protection mechanism, data storage operations based on a type of the superblock and a data type of to-be-written data.

## Claims

### Claim 1

A data storage method, comprising:
binding storage blocks, which are corresponding to each plane of each of a plurality of logical units in a storage device, to each other to form a superblock;
performing, using a corresponding disk redundancy array protection mechanism, data storage operations based on a type of the superblock and a data type of to-be-written data.

### Claim 2 (depends on 1)

The data storage method according to claim 1, wherein the superblock is at least one of: a first class private data SLC block, a second class private data SLC block, a user data SLC block, and a user data XLC block.

### Claim 3 (depends on 1)

The data storage method according to claim 1, wherein the superblock is a first class private data SLC block; and the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
writing the to-be-written data into both a first logical unit of the superblock and a second logical unit of the superblock when receiving a request of writing the to-be-written data, wherein the second logical unit is mirrored with the first logical unit;
restoring, when an error occurring in the data in the first logical unit, the data by mirroring the data in the second logical unit.

### Claim 4 (depends on 1)

The data storage method according to claim 1, wherein the superblock is a second class private data SLC block; and the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
writing the to-be-written data sequentially into the plurality of logical units of the superblock when receiving a request of writing the to-be-written data; performing an exclusive-OR (XOR) operation on the to-be-written data to obtain parity data;
writing the parity data into a last plane of a last logical unit of the plurality of logical units;
restoring, when an error occurring in the data in any plane of any one of the plurality of logical units, the data by performing the XOR operation on the data in the plurality of logical units.

### Claim 5 (depends on 1)

The data storage method according to claim 1, wherein the superblock is a user data SLC block or a user data XLC block; and the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
dividing the superblock into a plurality of disk redundancy array groups, wherein the number of the plurality of disk redundancy array groups is determined based on the number of pages contained in the predetermined number of WordLines in the storage block;
writing the to-be-written data are written into the plurality of the disk redundant array groups when receiving a request of writing the to-be-written data;
obtaining parity data corresponding to each of the plurality of disk redundant array groups;
writing the parity data corresponding to each of the plurality of disk redundancy array groups into a last plane of a last logical unit in the corresponding one of the plurality of disk redundancy array groups; and
restoring, when an error occurring in the data in one plane, the data by performing an XOR operation on the data that is in a same disk redundancy array group as the plane having the error.

### Claim 6 (depends on 5)

The data storage method according to claim 5, wherein the obtaining parity data corresponding to each of the plurality of disk redundant array groups, comprises:
performing the XOR operation on the data of each of the plurality of disk redundancy array groups to obtain the parity data corresponding to each of the plurality of disk redundancy array groups; or
obtaining, through a buffer swapping mechanism, the parity data corresponding to each of the plurality of disk redundancy array groups.

### Claim 7 (depends on 6)

The data storage method according to claim 6, wherein the obtaining, through the buffer swapping mechanism, the parity data corresponding to each of the plurality of disk redundancy array groups, comprises:
parsing the request of writing the to-be-written data to determine one disk redundant array group of the plurality of disk redundant array groups corresponding to the to-be-written data;
searching whether parity data of the disk redundant array group corresponding to the to-be-written data exists in a disk redundant array memory;
performing, when the parity data existing, the XOR operation on the data of each of the plurality of disk redundant array groups to obtain the parity data corresponding to each of the plurality of disk redundant array groups; and
writing, when the parity data not existing, parity data of the other disk redundancy array groups into a swap block; and reading the parity data of the disk redundancy array group corresponding to the to-be-written data from the swap block.

### Claim 8

A storage device, comprising a processor and a memory connected to the processor, wherein the memory is configured to store program instructions, the processor is configured to execute the program instructions to implement operations of:
binding storage blocks, which are corresponding to each plane of each of a plurality of logical units in a storage device, to each other to form a superblock;
performing, using a corresponding disk redundancy array protection mechanism, data storage operations based on a type of the superblock and a data type of to-be-written data.

### Claim 9 (depends on 8)

The storage device according to claim 8, wherein the superblock is at least one of: a first class private data SLC block, a second class private data SLC block, a user data SLC block, and a user data XLC block.

### Claim 10 (depends on 8)

The storage device according to claim 8, wherein the superblock is a first class private data SLC block; and the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
writing the to-be-written data into both a first logical unit of the superblock and a second logical unit of the superblock when receiving a request of writing the to-be-written data, wherein the second logical unit is mirrored with the first logical unit;
restoring, when an error occurring in the data in the first logical unit, the data by mirroring the data in the second logical unit.

### Claim 11 (depends on 8)

The storage device according to claim 8, wherein the superblock is a second class private data SLC block; and the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
writing the to-be-written data sequentially into the plurality of logical units of the superblock when receiving a request of writing the to-be-written data; performing an exclusive-OR (XOR) operation on the to-be-written data to obtain parity data;
writing the parity data into a last plane of a last logical unit of the plurality of logical units;
restoring, when an error occurring in the data in any plane of any one of the plurality of logical units, the data by performing the XOR operation on the data in the plurality of logical units.

### Claim 12 (depends on 8)

The storage device according to claim 8, wherein the superblock is a user data SLC block or a user data XLC block; and the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
dividing the superblock into a plurality of disk redundancy array groups, wherein the number of the plurality of disk redundancy array groups is determined based on the number of pages contained in the predetermined number of WordLines in the storage block;
writing the to-be-written data are written into the plurality of the disk redundant array groups when receiving a request of writing the to-be-written data;
obtaining parity data corresponding to each of the plurality of disk redundant array groups;
writing the parity data corresponding to each of the plurality of disk redundancy array groups into a last plane of a last logical unit in the corresponding one of the plurality of disk redundancy array groups; and
restoring, when an error occurring in the data in one plane, the data by performing an XOR operation on the data that is in a same disk redundancy array group as the plane having the error.

### Claim 13 (depends on 12)

The storage device according to claim 12, wherein the obtaining parity data corresponding to each of the plurality of disk redundant array groups, comprises:
performing the XOR operation on the data of each of the plurality of disk redundancy array groups to obtain the parity data corresponding to each of the plurality of disk redundancy array groups; or
obtaining, through a buffer swapping mechanism, the parity data corresponding to each of the plurality of disk redundancy array groups.

### Claim 14 (depends on 13)

The storage device according to claim 13, wherein the obtaining, through the buffer swapping mechanism, the parity data corresponding to each of the plurality of disk redundancy array groups, comprises:
parsing the request of writing the to-be-written data to determine one disk redundant array group of the plurality of disk redundant array groups corresponding to the to-be-written data;
searching whether parity data of the disk redundant array group corresponding to the to-be-written data exists in a disk redundant array memory;
performing, when the parity data existing, the XOR operation on the data of each of the plurality of disk redundant array groups to obtain the parity data corresponding to each of the plurality of disk redundant array groups; and
writing, when the parity data not existing, parity data of the other disk redundancy array groups into a swap block; and reading the parity data of the disk redundancy array group corresponding to the to-be-written data from the swap block.

### Claim 15

A computer-readable storage medium, storing program instructions, wherein the program instructions, when being executed by a processor, are configured to implement operations of:
binding storage blocks, which are corresponding to each plane of each of a plurality of logical units in a storage device, to each other to form a superblock;
performing, using a corresponding disk redundancy array protection mechanism, data storage operations based on a type of the superblock and a data type of to-be-written data.

### Claim 16 (depends on 15)

The computer-readable storage medium according to claim 15, wherein the superblock is at least one of: a first class private data SLC block, a second class private data SLC block, a user data SLC block, and a user data XLC block.

### Claim 17 (depends on 15)

The computer-readable storage medium according to claim 15, wherein the superblock is a first class private data SLC block; and the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
writing the to-be-written data into both a first logical unit of the superblock and a second logical unit of the superblock when receiving a request of writing the to-be-written data, wherein the second logical unit is mirrored with the first logical unit;
restoring, when an error occurring in the data in the first logical unit, the data by mirroring the data in the second logical unit.

### Claim 18 (depends on 15)

The computer-readable storage medium according to claim 15, wherein the superblock is a second class private data SLC block; and the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
writing the to-be-written data sequentially into the plurality of logical units of the superblock when receiving a request of writing the to-be-written data; performing an exclusive-OR (XOR) operation on the to-be-written data to obtain parity data;
writing the parity data into a last plane of a last logical unit of the plurality of logical units;
restoring, when an error occurring in the data in any plane of any one of the plurality of logical units, the data by performing the XOR operation on the data in the plurality of logical units.

### Claim 19 (depends on 15)

The computer-readable storage medium according to claim 15, wherein the superblock is a user data SLC block or a user data XLC block; and the performing, using the corresponding disk redundancy array protection mechanism, data storage operations based on the type of the superblock and the data type of to-be-written data, comprises:
dividing the superblock into a plurality of disk redundancy array groups, wherein the number of the plurality of disk redundancy array groups is determined based on the number of pages contained in the predetermined number of WordLines in the storage block;
writing the to-be-written data are written into the plurality of the disk redundant array groups when receiving a request of writing the to-be-written data;
obtaining parity data corresponding to each of the plurality of disk redundant array groups;
writing the parity data corresponding to each of the plurality of disk redundancy array groups into a last plane of a last logical unit in the corresponding one of the plurality of disk redundancy array groups; and
restoring, when an error occurring in the data in one plane, the data by performing an XOR operation on the data that is in a same disk redundancy array group as the plane having the error.

### Claim 20 (depends on 19)

The computer-readable storage medium according to claim 19, wherein the obtaining parity data corresponding to each of the plurality of disk redundant array groups, comprises:
performing the XOR operation on the data of each of the plurality of disk redundancy array groups to obtain the parity data corresponding to each of the plurality of disk redundancy array groups; or
obtaining, through a buffer swapping mechanism, the parity data corresponding to each of the plurality of disk redundancy array groups.
