US 11,989,097 B2
Chunk and snapshot deletions
Srikant Varadan, San Jose, CA (US)
Assigned to Hewlett Packard Enterprise Development LP, Spring, TX (US)
Filed by HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP, Houston, TX (US)
Filed on Apr. 18, 2022, as Appl. No. 17/659,583.
Prior Publication US 2023/0333939 A1, Oct. 19, 2023
Int. Cl. G06F 11/14 (2006.01)
CPC G06F 11/1453 (2013.01) [G06F 11/1458 (2013.01); G06F 2201/84 (2013.01)] 19 Claims
OG exemplary drawing
 
1. A non-transitory machine-readable storage medium comprising instructions that upon execution cause a system to:
maintain mapping metadata for data in storage, the data divided into chunks, the mapping metadata comprising chunk entries mapping chunk identifiers of the chunks to storage locations, wherein the chunk identifiers are monotonically increasing as chunks are created, and the chunks are immutable;
update an epoch in response to triggering a creation of a snapshot of the data, the snapshot comprising a point-in-time representation of data, wherein multiple snapshots share references to at least one chunk;
in response to a deletion of a first chunk, update a first chunk entry for the first chunk to include a creation epoch identifier and a deletion epoch identifier for the first chunk, the first chunk entry being part of the chunk entries in the mapping metadata, the creation epoch identifier identifying an epoch in which the first chunk was created, and the deletion epoch identifier identifying an epoch in which the first chunk was deleted, wherein each epoch comprises a range of chunk identifiers; and
in response to a deletion of a first snapshot of the multiple snapshots, wherein the first snapshot is associated with a first epoch that is preceded by a predecessor epoch, identify chunk entries to remove, based on respective creation and deletion epoch identifiers, by traversing exclusively a subset of chunk entries having chunk identifiers in a traversal range starting after an end of a range of chunk identifiers of the predecessor epoch and ending at an end of a range of chunk identifiers of the first epoch.