Patent ID: 7984238

Claim:
A computer-readable storage medium in which a storage-management program is recorded, the storage-management program causing a computer to perform a management process for managing a plurality of storage areas, comprising: collecting valid-area-determination information items and timestamp information items, each of the valid-area-determination information items showing whether a corresponding one of the plurality of storage areas is one of valid areas in which data is stored or one of invalid areas in which data is not stored, each of the timestamp information items showing that an entire of a corresponding one of the plurality of storage areas has been accessed; copying, in accordance with the valid-area-determination information items and the timestamp information items, data from a storage area which is selected from among the valid areas and whose timestamp information item is oldest to a storage area which is selected from among the invalid areas and whose timestamp information item is oldest; and updating a timestamp information item concerning the storage area from which the data is copied and a timestamp information item concerning the storage area to which the data is copied, updating a valid-area-determination information item concerning the storage area from which the data is copied to an information item showing that the storage area is an invalid area, and updating a valid-area-determination information item concerning the storage area to which the data is copied to an information item showing that the storage area is a valid area.