Spdk/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: make fn_table a const pointer 2016-09-02 09:30:28 -07:00
conf build: include spdk.common.mk in lib Makefiles 2016-07-18 16:17:40 -07:00
copy copy_engine: add fill (memset) function 2016-09-02 09:24:47 -07:00
cunit test/cunit: include stdio.h for fprintf() 2016-08-08 09:04:20 -07:00
event event: Allow idle reactors to sleep 2016-08-17 10:02:38 -07:00
ioat No longer wrap assert() 2016-08-19 10:53:06 -07:00
iscsi iscsi: use spdk/endian.h functions 2016-08-25 13:29:56 -07:00
json json: allow decoding of non-standard comments 2016-08-19 09:49:18 -07:00
jsonrpc build: include spdk.common.mk in lib Makefiles 2016-07-18 16:17:40 -07:00
log log: dynamically generate usage for -t option 2016-08-22 16:57:19 -07:00
memory build: include spdk.common.mk in lib Makefiles 2016-07-18 16:17:40 -07:00
net net: remove unused #defines 2016-08-08 13:46:20 -07:00
nvme nvme: add the APIs to use the shared memory zone 2016-09-06 13:18:16 -07:00
nvmf nvmf: Remove the data structure spdk_nvmf_controller. 2016-09-06 13:54:58 -07:00
rpc build: include spdk.common.mk in lib Makefiles 2016-07-18 16:17:40 -07:00
scsi scsi: do not fill out more than allocation length for standard inquiry 2016-09-08 09:34:49 -07:00
trace trace: hard-code lcore history array size 2016-07-22 12:50:44 -07:00
util scsi: move spdk_strcpy_pad() into util/string.c 2016-08-22 08:58:07 -07:00
Makefile iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00