摘要 |
A host computer sends a write command to a storage device. The device compresses the data. The length of the compressed data may vary for the same amount of uncompressed data. The device then allocates space in the storage device for the compressed data at the next unwritten location. The device then returns the physical location, at which the data was written, to the host. The size of the compressed data is stored in the device and the physical location is stored in the host. The physical location may be associated with the logical block address of the data. When the host reads the data, it sends the physical location to the device. The device decompresses the data and returns it to the host. Alternatively, the host may send a write command with a variable amount of data, which is not compressed by the device. |