{"pub_number":"US12572425B2","doc_number":"12572425","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"System and method for scanning file systems","abstract_text":"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.","claims":[{"number":1,"text":"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.","independent":true},{"number":2,"text":"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.","independent":false,"depends_on":[1]},{"number":3,"text":"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.","independent":false,"depends_on":[2]},{"number":4,"text":"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.","independent":false,"depends_on":[1]},{"number":5,"text":"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.","independent":false,"depends_on":[4]},{"number":6,"text":"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.","independent":false,"depends_on":[4]},{"number":7,"text":"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.","independent":false,"depends_on":[1]},{"number":8,"text":"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.","independent":false,"depends_on":[7]},{"number":9,"text":"The system of claim 1, wherein the processor is configured to execute the one or more processor-executable routines to restart a scan from a latest checkpoint of the one or more checkpoints upon crash or pre-determined termination of the file system scan.","independent":false,"depends_on":[1]},{"number":10,"text":"A method for scanning a file system, the method comprising: executing a file system scan using a depth-first concurrent scan method, wherein the depth-first concurrent scan method comprises 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; creating one or more checkpoints during the file system scan based on one or more predefined time intervals; and restarting a scan from a latest checkpoint of the one or more checkpoints.","independent":true},{"number":11,"text":"The method of claim 10, wherein the depth-first concurrent scan method comprises splitting a scan track to assign a portion of the scan track to a first idle worker from an idle worker collection.","independent":false,"depends_on":[10]},{"number":12,"text":"The method of claim 11, wherein the depth-first concurrent scan method comprises: 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.","independent":false,"depends_on":[11]},{"number":13,"text":"The method of claim 10, wherein the method further comprises generating an array comprising a plurality of worker identifiers and corresponding scan track identifiers.","independent":false,"depends_on":[10]},{"number":14,"text":"The method of claim 13, wherein the method further comprises maintaining and mutating scan tracks allocated to one or more scan workers in the array comprising worker identifiers and scan track identifiers.","independent":false,"depends_on":[13]},{"number":15,"text":"The method of claim 10, wherein the method comprises creating the one or more checkpoints based on a snapshot, at the one or more predefined time intervals, of an array comprising worker identifiers and scan track identifiers.","independent":false,"depends_on":[10]},{"number":16,"text":"The method of claim 10, wherein the method comprises restarting 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.","independent":false,"depends_on":[10]},{"number":17,"text":"The method of claim 16, wherein the method comprises restarting 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.","independent":false,"depends_on":[16]},{"number":18,"text":"The method of claim 10, wherein the method comprises restarting a scan from a latest checkpoint of the one or more checkpoints upon crash or pre-determined termination of the file system scan.","independent":false,"depends_on":[10]}],"claim_stats":{"total":18,"independent":2,"dependent":16},"description":"CROSS REFERENCE TO RELATED APPLICATION\nThis 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.\nBACKGROUND\nEmbodiments 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.\nTypically, 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.\nThus, 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.\nSUMMARY\nThe 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.\nBriefly, according to an example emb","inventors":[{"name":"Srikiran Gottipati","slug":"srikiran-gottipati","city":"Andra Pradesh","country":"IN"},{"name":"Milind Vithal Borate","slug":"milind-vithal-borate","city":"Maharashtra","country":"IN"},{"name":"Nishith Chitaliya","slug":"nishith-chitaliya","city":"Maharashtra","country":"IN"}],"assignees":[{"name":"Druva Inc.","slug":"druva-inc","country":"US"}],"examiners":[],"cpc_codes":["G06F 11/1441","G06F 11/1461","G06F 9/5083"],"ipc_codes":["G06F 11/14","G06F 11/1446","G06F 9/50"],"filing_date":"2023-11-20","pub_date":"2026-03-10","grant_date":"2026-03-10","expiration_date":"2043-11-20","family_members":[],"citations_made":[{"pub_number":"US6067541A","category":"examiner"},{"pub_number":"US6442663B1","category":"examiner"}],"non_patent_literature":["Wikipedia","“","application checkpointing","”","page, retrieved from https://en.wikipedia.org/wiki/Application_checkpointing (Year: 2025)."],"drawings_count":15,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":2,"npl_citations":5,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3298789,"pagerank_rank":3298789,"velocity_rank":3298789,"family_citations":0}}