Patent ID: 8880908

Claim:
A computing system for assuring completion of I/O operations when power available to the system is deteriorating, the system comprising: a processor configured to communicate with recording media, the processor configured to perform a method comprising: in a first stage of operation, receiving, by the processor, requests to execute I/O operations, executing requested I/O operations to each recording medium of said recording media and determining power consumption associated with executions of the I/O operations of each recording medium; and in a second stage of operation, receiving, by the processor, a request to execute an I/O operation to a respective recording medium; interrogating, by the processor, a power source for a reading of a quantity of available power at the power source; determining, by the processor, the current amount of available power as a result of the interrogating and determining an amount of power required to complete the I/O operation at the respective recording medium based on the determined power consumption associated with executions of the I/O operations of each recording medium; executing the requested I/O operations to the respective recording medium based on the determined amount of power required to complete the I/O operation at the respective recording medium being less than the determined current amount of available power at the power source; blocking execution of the requested I/O operation to the respective recording medium based on the determined amount of power required to complete the I/O operation at the respective recording medium being greater than the determined current amount of available power at the power source whereby the current amount of available power at the power source is insufficient to complete the I/O operation at the respective recording medium; and commencing execution of a blocked I/O operation responsive to a user command where the I/O operation comprises an incidence of a write access of a file, the commencing comprising writing a counter to the file, restoring power following a complete power outage and, in an event the writing was incomplete at the instance of the complete power outage, resuming the writing in accordance with the counter.