摘要 |
<p>A method for accessing a storage device and a storage device, to solve a problem that address translation is performed too many times when the storage device is accessed. The method comprises: a storage device receiving an interface command comprising a destination key; converting the destination key to obtain a physical block address corresponding to the destination key; and executing the interface command according to the obtained physical block address. The storage device comprises: an interface, a controller, and a storage medium. The interface receives an interface command comprising a destination key and sends the interface command to the controller. The controller converts the destination key to obtain a physical block address corresponding to the destination key. The controller executes the interface command for the storage medium according to the obtained physical block address. This technical solution reduces the address translation times, raises the speed of accessing a storage device in a computer system, and therefore improves the performance of the whole computer system.</p> |