DATA STORAGE DEVICE AND METHOD
First Claim
1. A data storage apparatus, comprising:
- a cache memory for storing data including user data and control information of the apparatus;
a nonvolatile memory;
a power supply for supplying an instant power after an occurrence of a power failure; and
a processor for executing a process including;
when the power failure occurs, saving the user data and the control information stored in the cache memory into the nonvolatile memory by using the instant power;
when the power failure recovers, restoring the data stored in the nonvolatile memory into the cache memory, updating the managing information stored in the cache memory, and erasing the data stored in the nonvolatile memory after restoring the data into the cache memory; and
when another power failure occurs during erasing the data stored in the nonvolatile memory, stopping the erasing, erasing the control information stored in the nonvolatile memory by using the instant power if the control information is remained in the nonvolatile memory and saving, into the nonvolatile memory, the updated control information stored in the cache memory and the user data which has been erased from the nonvolatile memory.
1 Assignment
0 Petitions
Accused Products
Abstract
An apparatus includes a cache memory for storing user data and control information of the apparatus, a nonvolatile memory and a processor for executing a process including when the power failure occurs, saving the user data and the control information stored in the cache memory into the nonvolatile memory, when the power failure recovers, restoring the data stored in the nonvolatile memory into the cache memory, and erasing the data stored in the nonvolatile memory after restoring the data into the cache memory and when another power failure occurs during erasing the data stored in the nonvolatile memory, erasing the control information stored in the nonvolatile memory if the control information is remained in the nonvolatile memory and saving, into the nonvolatile memory, the updated control information stored in the cache memory and the user data which has been erased from the nonvolatile memory.
-
Citations
7 Claims
-
1. A data storage apparatus, comprising:
-
a cache memory for storing data including user data and control information of the apparatus; a nonvolatile memory; a power supply for supplying an instant power after an occurrence of a power failure; and a processor for executing a process including; when the power failure occurs, saving the user data and the control information stored in the cache memory into the nonvolatile memory by using the instant power; when the power failure recovers, restoring the data stored in the nonvolatile memory into the cache memory, updating the managing information stored in the cache memory, and erasing the data stored in the nonvolatile memory after restoring the data into the cache memory; and when another power failure occurs during erasing the data stored in the nonvolatile memory, stopping the erasing, erasing the control information stored in the nonvolatile memory by using the instant power if the control information is remained in the nonvolatile memory and saving, into the nonvolatile memory, the updated control information stored in the cache memory and the user data which has been erased from the nonvolatile memory. - View Dependent Claims (2, 3)
-
-
4. A data storage method for controlling a data storage apparatus, including a cache memory for storing data including user data and control information of the apparatus;
- a nonvolatile memory;
a power supply for supplying an instant power after an occurrence of a power failure, the method, comprising;when the power failure occurs, saving the user data and the control information stored in the cache memory into the nonvolatile memory by using the instant power; when the power failure recovers, restoring the data stored in the nonvolatile memory into the cache memory, updating the managing information stored in the cache memory, and erasing the data stored in the nonvolatile memory after restoring the data into the cache memory; and when another power failure occurs during erasing the data stored in the nonvolatile memory, stopping the erasing, erasing the control information stored in the nonvolatile memory by using the instant power if the control information is remained in the nonvolatile memory and saving, into the nonvolatile memory, the updated control information stored in the cache memory and the user data which has been erased from the nonvolatile memory. - View Dependent Claims (5)
- a nonvolatile memory;
-
6. A non-transitory computer readable medium storing a management program for controlling a data storage apparatus, including a cache memory for storing data including user data and control information of the apparatus;
- a nonvolatile memory;
a power supply for supplying an instant power after an occurrence of a power failure, the method, comprising;when the power failure occurs, saving the user data and the control information stored in the cache memory into the nonvolatile memory by using the instant power; when the power failure recovers, restoring the data stored in the nonvolatile memory into the cache memory, updating the managing information stored in the cache memory, and erasing the data stored in the nonvolatile memory after restoring the data into the cache memory; and when another power failure occurs during erasing the data stored in the nonvolatile memory, stopping the erasing, erasing the control information stored in the nonvolatile memory by using the instant power if the control information is remained in the nonvolatile memory and saving, into the nonvolatile memory, the updated control information stored in the cache memory and the user data which has been erased from the nonvolatile memory. - View Dependent Claims (7)
- a nonvolatile memory;
Specification