Error detection for files
First Claim
1. A method performed by a computer, the method comprising:
- receiving a request to update a file;
refraining from updating the file until after a dirty flag for the file has been written to non-volatile storage;
setting a dirty flag to indicate the file is potentially dirty;
sending a request to write the dirty flag to the non-volatile storage;
receiving an indication that the dirty flag has been written to the non-volatile storage; and
after receiving the indication, updating, by the computer, the file in accordance with the request to update the file.
2 Assignments
0 Petitions
Accused Products
Abstract
Aspects of the subject matter described herein relate to error detection for files. In aspects, before allowing updates to a clean file, a flag marking the file as dirty is written to non-volatile storage. Thereafter, the file may be updated as long as desired. Periodically or at some other time, the file may be marked as clean after all outstanding updates to the file and error codes associated with the file are written to storage. While waiting for outstanding updates and error codes to be written to storage, if additional requests to update the file are received, the file may be marked as dirty again prior to allowing the additional requests to update the file. The request to write a clean flag regarding the file may be done lazily.
-
Citations
19 Claims
-
1. A method performed by a computer, the method comprising:
-
receiving a request to update a file; refraining from updating the file until after a dirty flag for the file has been written to non-volatile storage; setting a dirty flag to indicate the file is potentially dirty; sending a request to write the dirty flag to the non-volatile storage; receiving an indication that the dirty flag has been written to the non-volatile storage; and after receiving the indication, updating, by the computer, the file in accordance with the request to update the file. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. At least one memory storage device storing computer-executable instructions that, when executed by a computing device, cause the computing device to perform actions, comprising:
in a file system in which at least some files are updated by writing in place, as part of a recovery for a file maintained on the file system, performing the actions, comprising; reading a flag indicative of whether the file was marked as dirty, the flag previously written to non-volatile storage prior to allowing any updates to the file; if the flag indicates that the file was marked as dirty, indicating that the file is suspect; if the flag indicates that the file was not marked as dirty, indicating that the file is clean. - View Dependent Claims (12, 13, 14, 15)
-
16. A system comprising a computing device and at least one program module that are together configured for performing actions comprising:
-
providing access to files of a storage device; determining error codes for files of the storage device, each error code including data regarding a file corresponding to the error code, the data usable to detect one or more errors regarding whether the file or a portion thereof was correctly written to the storage device; writing a dirty flag to the storage device prior to allowing any update to the file; receiving a request to update the file; marking the file as dirty prior to allowing the update to the file in accordance with the request; and determining an error code for the file in response to changes made to the file in response to the request to update the file. - View Dependent Claims (17, 18, 19)
-
Specification