US 12,001,393 B2
Directory snapshots based on directory level inode virtualization
Soumyadeep Sen, Summit, NJ (US); Rohit K. Chawla, Scotch Plains, NJ (US); Marc A. De Souter, Wayne, NJ (US); and Alexander S. Mathews, Morganville, NJ (US)
Assigned to DELL PRODUCTS L.P., Round Rock, TX (US)
Filed by Dell Products L.P., Round Rock, TX (US)
Filed on Nov. 30, 2021, as Appl. No. 17/538,318.
Prior Publication US 2023/0169037 A1, Jun. 1, 2023
Int. Cl. G06F 16/11 (2019.01); G06F 16/17 (2019.01)
CPC G06F 16/128 (2019.01) [G06F 16/1734 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A system, comprising:
a processor; and
a memory that stores executable instructions that, when executed by the processor, facilitate performance of operations, the operations comprising:
maintaining a first directory inode mapping file associated with a first directory that is within a filesystem root directory namespace, the first directory inode mapping file comprising a first directory virtual inode number associated with a first directory real inode number of a directory real inode data structure; and
creating a second directory comprising a snapshot of the first directory, the creating comprising allocating a second directory inode mapping file for the second directory, and copying data of the first directory inode mapping file to the second directory inode mapping file;
detecting a requested modification to the first directory; and
in response to the detecting the requested modification, splitting the directory real inode data structure into a first directory real inode data structure for the first directory and a second directory real inode data structure for the second directory, the splitting comprising allocating the first directory real inode data structure, assigning a new directory real inode number for the first directory real inode data structure, and updating the first directory inode mapping file with the new directory real inode number for the first directory real inode data structure.