Patent ID: 7337358

Claim:
A method f or saving the contents of a memory structure stored in a volatile memory and having one or more portions to a data file on a mass storage device, the method comprising: attempting to save each portion of the memory structure in a first mode, wherein in the first mode minimal integrity checking is performed on each of the portions; determining in the first mode whether a portion of the data file is unsaveable; and in response to determining that a portion is unsaveable, attempting to save the contents of the memory structure in a second mode wherein more extensive integrity checking is performed on each of the portions and wherein saving of each unsaveable portion is skipped wherein while attempting to save the contents of the memory structure in the second mode a determination is made as to whether an unsaveable portion may be repaired, and in response to determining that an unsaveable portion may be repaired, repairing the unsaveable portion and saving the repaired portion to the data file.