System and method for scanning file systems
Abstract
A system for scanning a file system is presented. The system includes a memory storing one or more processor-executable routines; and a processor communicatively coupled to the memory. The processor is configured to execute the one or more processor-executable routines to execute a file system scan using a depth-first concurrent scan method; create one or more checkpoints during the file system scan based on one or more predefined time intervals; and restart a scan from a latest checkpoint of the plurality of checkpoints. A related method is also presented.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A system for scanning a file system, the system comprising: a memory storing one or more processor-executable routines; and a processor communicatively coupled to the memory, the processor configured to execute the one or more processor-executable routines to: execute a file system scan using a depth-first concurrent scan method, the depth-first concurrent scan method comprising dividing a scan workload into a plurality of concurrent scan tracks, and assigning each scan track of the plurality of concurrent scan tracks to a corresponding scan worker; create one or more checkpoints during the file system scan based on one or more predefined time intervals; and restart a scan from a latest checkpoint of the one or more of checkpoints.
- Claim 2Depends on #1
The system of claim 1, wherein the processor is configured to execute the one or more processor-executable routines to execute the depth-first concurrent scan method comprising splitting a scan track to assign a portion of the scan track to a first idle worker from an idle worker collection.
- Claim 3Depends on #2
The system of claim 2, wherein the processor is configured to execute the one or more processor-executable routines to execute the depth-first concurrent scan method comprising: creating a scan worker and assigning a root track in a directory to the scan worker; sorting contents of the directory in ascending order; checking if an idle worker is available from the idle worker collection; and assigning a portion of the root track to the first idle worker if available.
- Claim 4Depends on #1
The system of claim 1, wherein the processor is further configured to execute the one or more processor-executable routines to generate an array comprising a plurality of worker identifiers and corresponding scan track identifiers.
- Claim 5Depends on #4
The system of claim 4, wherein the processor is further configured to execute the one or more processor-executable routines to maintain and mutate scan tracks allocated to one or more scan workers in the array comprising worker identifiers and scan track identifiers.
- Claim 6Depends on #4
The system of claim 4, wherein the processor is configured to execute the one or more processor-executable routines to create the one or more checkpoints based on a snapshot of the array at the one or more predefined time intervals.
- Claim 7Depends on #1
The system of claim 1, wherein the processor is configured to execute the one or more processor-executable routines to restart a scan from the latest checkpoint of the one or more checkpoints, wherein the latest checkpoint comprises a list of scan tracks that capture a state of each scan track worker of a plurality of scan track workers.
- Claim 8Depends on #7
The system of claim 7, wherein the processor is configured to restart the scan from the latest checkpoint of the one or more checkpoints by: assigning a scan worker to a corresponding scan track based on an array comprising worker identifiers and scan track identifiers captured in a snapshot; assigning a scan worker to an idle worker collection if a scan track corresponding to a worker identifier is not present; and restarting a scan of a scan track from a track cursor if a scan track corresponding to a worker identifier is present.
Technical Overview & Description
CROSS REFERENCE TO RELATED APPLICATION This application claims a benefit of, and priority to, India Provisional Patent Application No. 202241067462, filed Nov. 23, 2022, the contents of which is incorporated by reference in its entirety. BACKGROUND Embodiments of the present invention generally relate to systems and methods for scanning file systems, and more particularly to systems and methods for restarting a file scan based on one or more checkpoints created using a depth-first concurrent scan method. Typically, to perform a backup or a restore of a filesystem, the entire filesystem hierarchy needs to be scanned that involves listing all directories and reading all files. Although some storage solutions support filesystems with change tracking features that help reduce time and resources required for incremental scans, a full backup or a restore of a filesystem with the change tracking features still requires the scanning of the entire filesystem hierarchy. Scan of a large filesystem puts heavy load on the storage server that is serving the filesystem as well as take up significant processing and network resources when backing up to remote storages like the cloud. This could result in a crash or calls for terminating an active scan to alleviate load on either the storage server or the network that would be required for other priority jobs. Thereby, requiring a full scan of the file hierarchy from the start. Thus, there is a need for systems and methods that provide for restarting a file scan in the event of a crash or a controlled termination of a scan to alleviate load on the resources consumed by the scan. SUMMARY The following summary is illustrative only and is not intended to be in any way limiting. In addition to the illustrative aspects, example embodiments, and features described, further aspects, example embodiments, and features will become apparent by reference to the drawings and the following detailed description. Briefly, according to an example emb
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (2)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (5)
- Wikipedia
- “
- application checkpointing
- ”
- page, retrieved from https://en.wikipedia.org/wiki/Application_checkpointing (Year: 2025).