Patent ID: 8850151

Claim:
A hybrid storage device, comprising: a hard-disk drive (HDD); a flash memory; an interface circuit; and control logic, electrically coupled to the HDD, the flash memory, and the interface circuit, wherein the control logic is configured to: receive a request via the interface circuit from an external device to write a block of data to the hybrid storage device, the request including an address that maps to the HDD, wherein the address is in an address space that is common to the external device and the hybrid storage device, and wherein the address space includes a data structure to translate from a virtual address on the external device to a physical address corresponding to one of the HDD and the flash memory; in response to the request, write at least a first portion of the block of data to the address, wherein at least the first portion of the block of data is written to and stored on the HDD; and if there is a change in environmental state information of the hybrid storage device while writing at least the first portion of the block of data, write at least a second portion of the block of data to an address in the common address space that is mapped to the flash memory prior to the write.