numam-spdk/test/lib
Jim Harris d3b58c006f scsi: do not fill out more than allocation length for standard inquiry
The translation code currently cheats a bit - it allocates a full 4KB
buffer for any DATA_IN command that is not a READ, and then the
different SCSI commands that fall into this category (INQUIRY,
READ_CAPACITY, MODE_SENSE, etc.) can write as much data as they
want without having to worry about a buffer overrun.  Code higher
up the stack makes sure we only send the correct amount of data back
to the iSCSI initiator.

This patch fixes this behavior for standard INQUIRY (EVPD = 0).
Future patches will fix the behavior for other non-READ DATA_IN
commands, at which point we can remove the 4KB allocation and
only allocate the amount of data specified in the CDB.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: If5e4a10eeba9851e2d91cab71228d2fc2d5baad0
2016-09-08 09:34:49 -07:00
..
bdev bdev: Remove unecessary include from bdev.h 2016-08-26 09:40:01 -07:00
event event: Allow idle reactors to sleep 2016-08-17 10:02:38 -07:00
ioat test/ioat: shorten test times to 1 second 2016-08-19 13:17:54 -07:00
iscsi test/iscsi: add target node config parsing test 2016-08-18 09:54:34 -07:00
json json: allow decoding of non-standard comments 2016-08-19 09:49:18 -07:00
jsonrpc jsonrpc: add JSON-RPC 2.0 library 2016-05-23 10:28:58 -07:00
log test/log: fix typo 2016-06-01 09:48:39 -07:00
memory build: include -lrt and -lpthread in LDFLAGS 2016-06-23 09:04:02 -07:00
nvme nvme: add the APIs to use the shared memory zone 2016-09-06 13:18:16 -07:00
nvmf nvmf: enforce NQN validity at creation time 2016-08-24 13:34:47 -07:00
scsi scsi: do not fill out more than allocation length for standard inquiry 2016-09-08 09:34:49 -07:00
Makefile test/iscsi: add parameter negotiation unit test 2016-08-18 09:54:34 -07:00