# US 2021/0240662 A1 · Using a storage system to optimize and maintain the metadata associated with a plurality of small files

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

- Number: US 2021/0240662 A1
- Document ID: US20210240662A1
- Status: Published application
- Kind: A1
- Application number: 17/174,103
- Filed: 2021-02-11
- Published: 2021-08-05
- Earliest claimed: 2018-07-03
- Assignees: Cohesity, Inc.
- Applicants: Cohesity, Inc.
- Inventors: Apurv Gupta; Anirvan Duttagupta
- Web page: https://patentgrep.com/patent/US20210240662A1

## 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 16/113: {Details of archiving (lifecycle management in storage systems G06F3/0649; point-in-time backing up or restoration of persistent data G06F11/1446)}
- G06F 16/9027: {Trees}
- G06F 16/907: Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A size associated with a first content file is determined to be less than a threshold size. In response to determining that the size associated with the first content file is less than the threshold size, a combined metadata structure is updated at least in part by combining metadata of the first content file with metadata of a second content file in the combined metadata structure. A snapshot tree is updated to reference a first portion of the combined metadata structure corresponding to the first content file and to reference a second portion of the combined metadata structure corresponding to the second content file.

## Claims

### Claim 1

A method, comprising:
determining that a size associated with a first content file is less than a threshold size wherein metadata of the first content file is organized using a first file metadata structure, wherein the first file metadata structure comprises a first root node, a first plurality of intermediate nodes, and a first plurality of leaf nodes with corresponding references to data chunks of the first content file;
in response to a determination that the size associated with the first content file is less than the threshold size, updating a combined metadata structure at least in part by combining in the combined metadata structure metadata of the first content file with metadata of a second content file included in a second file metadata structure, wherein the size associated with the second content file is less than the file threshold size, wherein the second file metadata structure comprises a second root node, a second plurality of intermediate nodes, and a second plurality of leaf nodes with corresponding references to data chunks of the second content file, wherein the combined metadata structure at least includes a third root node, the first plurality of leaf nodes, and the second plurality of leaf nodes; and
updating a tree data structure to reference a first portion of the combined metadata structure corresponding to the first content file and to reference a second portion of the combined metadata structure corresponding to the second content file.

### Claim 2 (depends on 1)

The method of claim 1, wherein the size associated with the first content file is determined when a storage system receives a backup of the first content file from a source system.

### Claim 3 (depends on 1)

The method of claim 1, further comprising receiving an updated version of the first content file.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
determining a size associated with the updated version of the first content file is greater than or equal to the file threshold size; and
removing the metadata of the first content file from the combined metadata structure.

### Claim 5 (depends on 4)

The method of claim 4, further comprising replacing the metadata of the first content file with metadata of a third content file.

### Claim 6 (depends on 3)

The method of claim 3, further comprising:
cloning the metadata associated with the first content file; and
modifying the cloned metadata associated with the first content file based on the updated version of the first content file.

### Claim 7 (depends on 1)

The method of claim 1, further comprising receiving a backup snapshot that includes the first content file.

### Claim 8 (depends on 7)

The method of claim 7, wherein the size associated with the first content file is determined based on the size of the first content file included in the backup snapshot.

### Claim 9 (depends on 1)

The method of claim 1, further comprising determining the size associated with the first content file based in part by traversing a view of file system data corresponding to a backup snapshot.

### Claim 10 (depends on 1)

The method of claim 1, wherein a first leaf node of the tree data structure that corresponds to the first content file is associated with a first file offset range of the combined metadata structure.

### Claim 11 (depends on 10)

The method of claim 10, wherein a second leaf node of the tree data structure that corresponds to the second content file is associated with a second file offset range of the combined metadata structure.

### Claim 12 (depends on 1)

The method of claim 1, further comprising generating a view of file system data corresponding to a backup snapshot, wherein the view includes the tree data structure and the combined metadata structure.

### Claim 13 (depends on 12)

The method of claim 12, wherein a leaf node of the tree data structure includes a pointer to the first file metadata structure that corresponds to the first content file.

### Claim 14 (depends on 13)

The method of claim 13, further comprising updating the pointer of the leaf node of the tree data structure to reference the third leaf node of the combined metadata structure instead of referencing the first file metadata structure that corresponds to the first content file.

### Claim 15 (depends on 1)

The method of claim 1, wherein updating the combined metadata structure includes reading a combined metadata structure reservation node.

### Claim 16 (depends on 15)

The method of claim 15, wherein updating the combined metadata structure further includes obtaining a lock for the combined metadata structure.

### Claim 17 (depends on 16)

The method of claim 16, wherein updating the combined metadata structure further includes reserving an offset range associated with the combined metadata structure.

### Claim 18 (depends on 17)

The method of claim 17, wherein updating the combined metadata structure further includes releasing the lock for the combined metadata structure.

### Claim 19

A computer program product, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
determining that a size associated with a first content file is less than a threshold size, wherein metadata of the first content file is organized using a first file metadata structure, wherein the first file metadata structure comprises a first root node, a first plurality of intermediate nodes, and a first plurality of leaf nodes with corresponding references to data chunks of the first content file;
in response to a determination that the size associated with the first content file is less than the threshold size, updating a combined metadata structure at least in part by combining in the combined metadata structure metadata of the first content file with metadata of a second content file included in a second file metadata structure, wherein the size associated with the second content file is less than the file threshold size, wherein the second file metadata structure comprises a second root node, a second plurality of intermediate nodes, and a second plurality of leaf nodes with corresponding references to data chunks of the second content file, wherein the combined metadata structure at least includes a third root node, the first plurality of leaf nodes, and the second plurality of leaf nodes; and
updating a tree data structure to reference a first portion of the combined metadata structure corresponding to the first content file and to reference a second portion of the combined metadata structure corresponding to the second content file.

### Claim 20

A system, comprising:
one or more processors configured to:
determine that a size associated with a first content file is less than a threshold size, wherein metadata of the first content file is organized using a first file metadata structure, wherein the first file metadata structure comprises a first root node, a first plurality of intermediate nodes, and a first plurality of leaf nodes with corresponding references to data chunks of the first content file;
in response to a determination that the size associated with the first content file is less than the threshold size, update a combined metadata structure at least in part by combining in the combined metadata structure metadata of the first content file with metadata of a second content file included in a second file metadata structure, wherein the size associated with the second content file is less than the file threshold size, wherein the second file metadata structure comprises a second root node, a second plurality of intermediate nodes, and a second plurality of leaf nodes with corresponding references to data chunks of the second content file, wherein the combined metadata structure at least includes a third root node, the first plurality of leaf nodes, and the second plurality of leaf nodes; and
update a tree data structure to reference a first portion of the combined metadata structure corresponding to the first content file and to reference a second portion of the combined metadata structure corresponding to the second content file; and
a memory coupled to the one or more processors and configured to provide the one or more processors with instructions.
