Recursive Multi-Threaded File System Scanner For Serializing File System Metadata Exoskeleton
First Claim
1. A computerized method for serializing metadata associated with a file system, comprising:
- accessing the file system;
initializing a serialization data structure;
spawning a current recursive search thread that begins at a selected location in the file system, where the current recursive search thread;
analyzes the selected location in the file system,acquires metadata associated with the selected location in the file system,serializes the metadata associated with the selected location in the file system into the serialization data structure, andselectively spawns an additional recursive search thread upon determining that the current recursive search thread has reached a branch point in a hierarchy of the file system, where the additional recursive search thread begins at a selected node in a branch path available at the branch point.
8 Assignments
0 Petitions
Accused Products
Abstract
Methods, apparatus, and other embodiments facilitate discovering and serializing metadata for a file system. After initializing or accessing a serialization data structure, recursive search threads that begin at a selected location in the file system are spawned. The threads analyzes the selected location in the file system, acquire metadata associated with the selected location in the file system, serialize the metadata associated with the selected location in the file system into the serialization data structure, and then selectively spawn additional recursive search threads. Additional recursive search threads may be spawned upon determining that the current recursive search thread has reached a branch point in a hierarchy of the file system. Different threads may perform different types of searches (e.g., depth-first breadth-first) and may operate in parallel. The serialization data structure may be persisted and surfaced in an object (e.g., JSON object) that can be queried or searched.
-
Citations
20 Claims
-
1. A computerized method for serializing metadata associated with a file system, comprising:
-
accessing the file system; initializing a serialization data structure; spawning a current recursive search thread that begins at a selected location in the file system, where the current recursive search thread; analyzes the selected location in the file system, acquires metadata associated with the selected location in the file system, serializes the metadata associated with the selected location in the file system into the serialization data structure, and selectively spawns an additional recursive search thread upon determining that the current recursive search thread has reached a branch point in a hierarchy of the file system, where the additional recursive search thread begins at a selected node in a branch path available at the branch point. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. An apparatus for serializing metadata associated with a file system, comprising:
-
a processor; a memory that stores information concerning a multi-threaded traversal of the file system; a set of logics; and an interface to connect the processor, the memory, and the set of logics, the set of logics comprising; a first logic that spawns a recursive thread that is configured to; acquire metadata for locations in the file system visited by the recursive thread, and make a request to the first logic to spawn an additional recursive thread at a branch point in a hierarchy of the file system, a second logic that serializes metadata acquired by recursive threads spawned by the first logic into an object, and a third logic that persists and surfaces the object. - View Dependent Claims (15, 16, 17, 18, 19)
-
-
20. A non-transitory computer-readable storage medium storing computer executable instructions that when executed by a computer control the computer to perform a method for serializing file system metadata into a persistent object, the method comprising:
-
establishing a start point for a recursive, multi-threaded, multi-modal search thread; launching the recursive, multi-threaded, multi-modal search thread at the start point; and serializing data produced by the recursive, multi-threaded, multi-modal search thread and one or more progeny threads launched by the recursive, multi-threaded, multi-modal search thread into an object.
-
Specification