BRIEF DESCRIPTION OF THE DRAWINGS
The above aspects of the present invention, and others, will become more apparent from the following detailed description with reference to the accompanying drawings, in which:
FIG. 1 shows a conventional storage apparatus;
FIG. 2 shows a storage apparatus using a non-volatile memory as its cache according to an exemplary embodiment of the present invention;
FIG. 3 shows a virtual block address space according to an exemplary embodiment of the present invention;
FIG. 4 shows an allocated block list and a free block list according to an exemplary embodiment of the present invention;
FIG. 5 shows a block mapping table according to an exemplary embodiment of the present invention;
FIG. 6 shows an allocated block list, a free block list, and a block mapping table, before blocks are collected, according to an exemplary embodiment of the present invention;
FIG. 7 shows an allocated block list, a free block list, and a block mapping table, after blocks are collected, according to an exemplary embodiment of the present invention;
FIG. 8 shows an allocated block list, a free block list, and a block mapping table, before a bad block is processed, according to an exemplary embodiment of the present invention;
FIG. 9 shows an allocated block list, a free block list, and a block mapping table, after a bad block is processed, according to an exemplary embodiment of the present invention;
FIG. 10 shows a method of allocating blocks according to an exemplary embodiment of the present invention;
FIG. 11 shows a method of collecting blocks according to an exemplary embodiment of the present invention;
FIG. 12 shows a method of processing a bad block according to an exemplary embodiment of the present invention; and
FIG. 13 shows a method of recovering from power interruption according to an exemplary embodiment of the present invention.