# US 2021/0286762 A1 · Snapshot Management in Partitioned Storage

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

- Number: US 2021/0286762 A1
- Document ID: US20210286762A1
- Status: Published application
- Kind: A1
- Application number: 16/817,264
- Filed: 2020-03-12
- Published: 2021-09-16
- Earliest claimed: 2020-03-12
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Shay BENISTY; Judah Gamliel HAHN; Ariel NAVON
- Web page: https://patentgrep.com/patent/US20210286762A1

## CPC

- G06F 16/128: {Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion (error detection or correction of the data by redundancy in operations or in hardware G06F11/14, G06F11/16)}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/064: {Management of blocks}
- G06F 3/0641: {De-duplication techniques}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- 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 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/5011: {the resources being hardware resources other than CPUs, Servers and Terminals}
- G06F 11/1451: {by selection of backup contents}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 16/1734: {Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs}
- G06F 16/182: Distributed file systems
- G06F 2201/81: Threshold
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure generally relates to a storage snapshot management system. When updated data is written to the memory device, rather than rewriting all of the data, only the updated data is written to a new namespace. A snapshot of the new namespace indicates which LBAs in the new namespace contain data. New namespaces are added each time data is updated. When the updated data is to be read, the data storage device reads the updated LBA from the new namespace, and also gathers the non-updated data from the previous namespace. Eventually, the number of namespaces for the data reaches a threshold, and thus some namespaces need to be evicted. To evict a namespace, the updated data in the namespace is moved to a different namespace, or the non-updated data is moved to a namespace that contains updated data. In either case, the now unused namespaces are evicted.

## Claims

### Claim 1

A data storage device, comprising:
a memory device; and
a controller coupled to the memory device, wherein the controller is configured to:
receive a write command to a specific namespace;
determine that the specific namespace is an update of a base version;
allocate a memory block of the memory device;
update a snapshot management table; and
write data to the allocated block.

### Claim 2 (depends on 1)

The data storage device of claim 1, wherein the controller includes a snapshot management device.

### Claim 3 (depends on 2)

The data storage device of claim 2, wherein the snapshot management device allocates the memory block, updates the snapshot management table, and writes the data to the allocated block.

### Claim 4 (depends on 1)

The data storage device of claim 1, wherein the data that is written to the allocated block is modified LBAs.

### Claim 5 (depends on 4)

The data storage device of claim 4, wherein base data that is not changed remains in a different namespace.

### Claim 6 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to, upon determining that the specific namespace is an update of the base version, not initialize the base version.

### Claim 7 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to write non-updated data to a different namespace during a namespace eviction process.

### Claim 8 (depends on 1)

The data storage device of claim 1, wherein the controller is further configured to update pointers in the snapshot management table to point to the base version.

### Claim 9

A data storage device, comprising:
a memory device; and
a controller coupled to the memory device, wherein the controller is configured to:
receive a read command for a specific namespace ID (NSID);
determine that the specific NSID is not a base version;
read a snapshot management table of the specific NSID; and
either:
read data from the memory device; or
decrease the specific NSID by one.

### Claim 10 (depends on 9)

The data storage device of claim 9, wherein the controller is further configured to:
decrease the specific NSID by one;
determine that the specific NSID is not a base version;
read a snapshot management table of the specific NSID; and
either:
read data from the memory device; or
decrease the specific NSID by one.

### Claim 11 (depends on 9)

The data storage device of claim 9, wherein the controller is further configured to read data from the memory device, wherein the reading comprises reading updated data from a first namespace and a second namespace.

### Claim 12 (depends on 9)

The data storage device of claim 9, wherein the controller is further configured to:
determine that the specific namespace is an update of a base version;
allocate a memory block of the memory device;
update a snapshot management table; and
write data to the allocated block.

### Claim 13 (depends on 9)

The data storage device of claim 9, wherein the controller is further configured to evict one or more namespaces once a number of namespaces exceeds a threshold.

### Claim 14 (depends on 13)

The data storage device of claim 13, wherein the evicting comprises moving data to a different namespace and releasing the evicted namespace.

### Claim 15 (depends on 9)

The data storage device of claim 9, wherein the snapshot management table contains information regarding specific updated LBAs for a specific namespace.

### Claim 16

A data storage device, comprising:
a memory device; and
a controller coupled to the memory device, wherein the controller is configured to:
receive an setting of a required snapshot number (RSN);
receive a snapshot update delta (SUD);
set a counter equal to 0;
receive a version update for data;
increase the counter by 1; and
determine whether the counter exceeds RSN+SUD.

### Claim 17 (depends on 16)

The data storage device of claim 16, wherein the controller is further configured to evict one or more snapshots if the counter exceeds RSN+SUD.

### Claim 18 (depends on 17)

The data storage device of claim 17, wherein the controller is further configured to, after evicting one or more snapshots, repeat the receiving a version update for data, increasing the counter by 1, and determining whether the counter exceeds RSN+SUD.

### Claim 19 (depends on 16)

The data storage device of claim 16, wherein the controller is further configured to, after determining that the counter exceeds RSN+SUD, repeat the receiving a version update for data, increasing the counter by 1, and determining whether the counter exceeds RSN+SUD.

### Claim 20 (depends on 16)

The data storage device of claim 16, wherein the controller is configured to set a new base version for SUD.
