CPC G06F 3/0659 (2013.01) [G06F 3/0604 (2013.01); G06F 3/067 (2013.01); G06F 3/0634 (2013.01)] | 15 Claims |
1. A storage device for providing data storage services to a host, comprising:
persistent storage comprising a file, wherein the file comprises a command portion, a payload portion, and a response portion; and
a controller programmed to:
obtain a write request from the host for the file, wherein the write request comprises a command packet and specifies a logical block address (LBA);
make a first determination that the LBA is associated with the command portion, in response to first determination:
perform processing of the command packet using a payload portion of the file, wherein processing of the command packet comprises reading a bit sequence in the command packet and invoking a functionality of the storage device based on the reading of the bit sequence;
generate a response packet based on the processing of the command packet, wherein the response packet comprises a response that is generated by the functionality of the storage device and a payload in the payload portion; and
store the response packet in a response portion of the file.
|