主权项 |
1. A method for use in analyzing mapping objects of file systems, the method comprising:
analyzing each inode of a set of inodes of files of a file system by iterating over the set of inodes, wherein a file is associated with a first inode of the set of inodes and a snapshot copy of the file is associated with a second inode of the set of inodes, wherein the second inode shares a subset of a set of storage objects associated with the first inode, wherein an inode of a file refers to a file system block hierarchy of the file, wherein a set of storage objects associated with an inode includes a set of file system blocks, wherein a file system block includes an indirect data block, wherein the snapshot copy of the file represents a point in time copy of the file, wherein the snapshot copy is created by creating a version of the inode of the file, wherein the version of the inode shares a subset of file system block hierarchy of the inode of the file; determining for each indirect data block of each inode of the set of inodes whether information regarding an indirect data block exists in a summary table; processing the indirect data block and storing information for the indirect data block in the summary table upon determining that the information regarding the indirect data block does not exist in the summary table; and skip processing the indirect data block upon determining that the information regarding the indirect data block exist in the summary table and the indirect data block is shared by the file and the snapshot copy of the file, wherein a callback is registered for receiving updated information regarding the indirect data block stored in the summary table. |