Patent ID: 8065472

Claim:
A computer-readable medium that stores instructions for accessing non-volatile media, wherein the instructions, when executed by one or more processors, cause the one or more processors to perform steps comprising: temporarily storing a unit of data into a non-volatile write buffer, wherein said unit of data is different from data stored in said non-volatile media; setting a flag associated with said unit of data to identify whether said unit of data has been transferred from said non-volatile write buffer to said non-volatile media, wherein said flag associated with said unit of data remains set through any subsequent power loss event and wherein said flag associated with said unit of data remains set through any subsequent reset event, and wherein a respective flag is associated with each unit of data stored in said non-volatile write buffer; in response to one of a power loss event and a reset event, and after restoring power, checking said flag associated with said unit of data, and if said unit of data has not been transferred from said non-volatile write buffer to said non-volatile media, transferring said unit of data from said non-volatile write buffer to said non-volatile media using a single media access operation; and in response to a read command for said unit of data before said unit of data is transferred to said non-volatile media, supplying said unit of data from said non-volatile write buffer, otherwise, supplying said unit of data from said non-volatile media.