Error detection for files
First Claim
1. A system comprising a computing device and at least one program module that are together configured for performing actions for maintaining a flag associated with a file, the actions comprising:
- first marking the file as clean, where the first marking comprises setting a flag to indicate that the file is clean and then writing the flag set to indicate that the file is clean to storage;
receiving a request to change the file, where the received request is a first request to change the file since the first marking;
second marking, in response to the received request, the file as dirty, where the second marking comprises setting a flag to indicate that the file is dirty and then writing flag set to indicate that the file is dirty to the storage;
changing, after the second marking is successfully completed, the file according to the received request;
writing, after the changing, at least a portion of the changed file to storage; and
third marking, after the writing is successfully completed, the file as clean, where the third marking comprises setting the flag to indicate that the file is dean and then writing the flag set to indicate that the file is clean to the storage.
3 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
20 Claims
-
1. A system comprising a computing device and at least one program module that are together configured for performing actions for maintaining a flag associated with a file, the actions comprising:
-
first marking the file as clean, where the first marking comprises setting a flag to indicate that the file is clean and then writing the flag set to indicate that the file is clean to storage; receiving a request to change the file, where the received request is a first request to change the file since the first marking; second marking, in response to the received request, the file as dirty, where the second marking comprises setting a flag to indicate that the file is dirty and then writing flag set to indicate that the file is dirty to the storage; changing, after the second marking is successfully completed, the file according to the received request; writing, after the changing, at least a portion of the changed file to storage; and third marking, after the writing is successfully completed, the file as clean, where the third marking comprises setting the flag to indicate that the file is dean and then writing the flag set to indicate that the file is clean to the storage. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method performed on a computing device, the method comprising:
-
first marking the file as clean, where the first marking comprises setting a flag to indicate that the file is clean and then writing the flag set to indicate that the file is clean to storage; receiving a request to change the file, where the received request is a first request to change the file since the first marking; second marking, in response to the received request, the file as dirty, where the second marking comprises setting a flag to indicate that the file is dirty and then writing flag set to indicate that the file is dirty to the storage; changing, after the second marking is successfully completed, the file according to the received request; writing, after the changing, at least a portion of the changed file to storage; and third marking, after the writing is successfully completed, the file as clean, where the third marking comprises setting the flag to indicate that the file is clean and then writing the flag set to indicate that the file is clean to the storage. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. 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:
-
first marking the file as dean, where the first marking comprises setting a flag to indicate that the file is clean and then writing the flag set to indicate that the file is clean to storage; receiving a request to change the file, where the received request is a first request to change the file since the first marking; second marking, in response to the received request, the file as dirty, where the second marking comprises setting a flag to indicate that the file is dirty and then writing flag set to indicate that the file is dirty to the storage; changing, after the second marking is successfully completed, the file according to the received request; writing, after the changing, at least a portion of the changed file to storage; and third marking, after the writing is successfully completed, the file as clean, where the third marking comprises setting the flag to indicate that the file is clean and then writing the flag set to indicate that the file is clean to the storage. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification