383b117309
For write operations, copy data to req->buf and write to disk. If chunk already specified in logical map, read the chunk first into req->buf, and overwrite with data specified by the write operation. If chunk not specified in logical map, fill logical blocks not specified by the write operation with zeroes. For read operations, read chunk into req->buf first, then copy relevant data into the buffers specified by the read operations. These operations are all functional, but have room for future improvement. For example, this patch will issue a separate backing read/write operations for each backing block in the chunk - this could be optimized to coalesce operations where the backing blocks are contiguous. While here, clean up freeing bufspace in one of the error paths - this needs to be freed using spdk_dma_free instead. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I6dbf4fc9a8fdf0f5424b1f1f9178c79891c96d0d Reviewed-on: https://review.gerrithub.io/434116 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
include | ||
lib | ||
Makefile | ||
unittest.sh |