| US 7,373,477 B2 | ||
| Fragmentation executing method and storage device | ||
| Makoto Takase, Kanagawa (Japan); Minoru Hashimoto, Kanagawa (Japan); Toshiroh Unoki, Kanagawa (Japan); Toru Aida, Kanagawa (Japan); and Mariko Kado, Kanagawa (Japan) | ||
| Assigned to Hitachi Global Storage Technologies Netherlands B.V., Amsterdam (Netherlands) | ||
| Filed on Mar. 17, 2005, as Appl. No. 11/84,455. | ||
| Claims priority of application No. 2004-078570 (JP), filed on Mar. 18, 2004. | ||
| Prior Publication US 2005/0210214 A1, Sep. 22, 2005 | ||
| Int. Cl. G06F 12/00 (2006.01) | ||
| U.S. Cl. 711—202 [711/165; 711/170; 711/206] | 19 Claims |

| 14. A method for swapping information stored in a first data block with information stored in a second data block in a storage
device which has a recording medium containing first data blocks, second data blocks, first dummy blocks and second dummy
blocks and is capable of communicating with a host apparatus, said method comprising:
receiving a swap command from the host apparatus;
copying information stored in a first data block to a first dummy block;
copying information stored in a second data block to a second dummy block;
in a mapping table to map data blocks to a dummy blocks table, writing entries by which the first data block is mapped to
the first dummy block and the second data block is mapped to the second dummy block;
copying the information stored in the first dummy block to the second data block;
copying the information stored in the second dummy block to the first data block;
erasing said entries from the mapping table; and
sending a swap completion command to the host apparatus.
|