US 12,189,574 B2
Two-level logical to physical mapping mechanism in a log-structured file system
Enning Xiang, San Jose, CA (US); Wenguang Wang, Santa Clara, CA (US); Abhay Kumar Jain, Cupertino, CA (US); Sriram Patil, San Jose, CA (US); Asit Desai, Cupertino, CA (US); and Eric Knauft, San Francisco, CA (US)
Assigned to VMware LLC, Palo Alto, CA (US)
Filed by VMware LLC, Palo Alto, CA (US)
Filed on Oct. 19, 2021, as Appl. No. 17/504,845.
Prior Publication US 2023/0123478 A1, Apr. 20, 2023
Int. Cl. G06F 16/11 (2019.01); G06F 12/02 (2006.01); G06F 16/182 (2019.01); G06F 16/22 (2019.01)
CPC G06F 16/128 (2019.01) [G06F 12/0238 (2013.01); G06F 16/1824 (2019.01); G06F 16/2246 (2019.01); G06F 2212/7201 (2013.01)] 20 Claims
OG exemplary drawing
 
15. A computer system comprising:
a processor; and
a non-transitory computer-readable medium having stored thereon instructions that, when executed by the processor, cause the processor to:
obtain a first first-level mapping associated with a first snapshot, of a plurality of snapshots of storage objects backed by a first-level copy-on-write (COW) B+ tree data structure and a plurality of second-level B+ tree data structures, based on a first logical block address, wherein each of the plurality of snapshots corresponds to one of the plurality of second-level B+ tree data structures;
obtain a second first-level mapping associated with a second snapshot from the plurality of snapshots based on a second logical block address;
in response to a determination that the first logical block address and the second logical block address are the same, identify a first second-level B+ tree data structure from the plurality of second-level B+ tree data structures, which corresponds to one of the plurality of snapshots, based on the first-second first-level mapping;
obtain a first second-level mapping based on the second logical block address in the first second-level B+ tree data structure;
obtain a first physical block address based on the first second-level mapping; and
access data at the first physical block address.