Online file system consistency check
AssigneeSymantec Corporation
InventorsNagaraj Shyam, Craig Keatley Harmer, George Mathew
Life of this patent
Estimating the term…
Abstract
A lock is acquired on a data structure. Content in the data structure is read and verified while the lock is held. The lock is then released, and then the file system components that are referred to by the data structure are verified. In essence, a file system consistency check of the file system components is performed offline in the background while the data structure remains accessible.
Claims20
A non-transitory computer-readable storage medium having computer-executable instructions for causing a computer system to perform a method comprising an online full file system consistency check comprising:
- acquiring a lock a first time on a data structure comprising content, said data structure stored in memory of said computer system;
- checking said content while holding said lock, wherein said content comprises references to file system components and wherein said checking comprises identifying valid instances of said file system components and invalid instances of said file system components;
- releasing said lock subsequent to said checking;
- and
- after releasing said lock, accessing and checking only said valid instances of said file system components referred to by said data structure.
A computer system comprising:
- a processor;
- and
- memory coupled to said processor and having stored therein instructions that, if executed by said computer system, cause said computer system to execute operations comprising:
- obtaining a lock a first time on a data structure comprising content and having a version number associated therewith, wherein said content comprises references to file system components;
- reading and verifying said content as part of an online full file system consistency check and then releasing said lock, wherein said verifying comprises identifying valid instances of said file system components and invalid instances of said file system components;
- and
- after releasing said lock, performing the remainder of said file system consistency check on only said valid instances of said file system components referred to by said data structure.
A computer-implemented method comprising:
- protecting a directory with a lock a first time to obtain a consistent view of said directory;
- checking content in said directory with said lock in place, wherein said content comprises inodes and wherein said checking comprises identifying valid instances of said inodes and invalid instances of said inodes;
- releasing said lock such that said directory is accessible;
- and
- with said directory accessible, checking only said valid instances of said inodes referred to by said directory concurrently with accesses to said directory.
Dependencies are inferred from the claim text.