numam-spdk/lib
Daniel Verkamp de5ffac4ec scsi: factor out read/write LBA range check
The SCSI read and write functions use the same LBA range check, so move
it up to spdk_bdev_scsi_readwrite().

spdk_bdev_scsi_read() previously passed task->transfer_len / blen rather
than xfer_len to the LBA range checking function, but this should
actually be using the transfer length field from the CDB (which is the
xfer_len parameter).

Change-Id: I8285abf936a18a0baf7cc25709945637e4e6b87d
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-05-18 13:47:42 -07:00
..
bdev bdev/nvme: print errno on spdk_nvme_ns_cmd submission failure 2017-05-18 10:23:43 -07:00
blob blob_bdev: use bdev block size getter 2017-05-17 09:45:42 -07:00
blobfs blobfs: move the location of next buffer check. 2017-05-16 10:51:26 +08:00
conf log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
copy copy: Replace rte_memcpy with regular memcpy 2017-05-09 13:11:39 -07:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk env/dpdk: use the new *rte_pci* API for DPDK 17.05 2017-05-12 07:53:42 -07:00
event env: Add wrappers for a lockless ring 2017-05-09 14:02:15 -07:00
ioat include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
iscsi iscsi: clean up iSCSI/SCSI task conversions 2017-05-16 16:45:22 -07:00
json include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
jsonrpc include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
log log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
net build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
nvme nvme: detach the pci device with calling process's own devhandle 2017-05-16 10:35:29 -07:00
nvmf nvmf: call function spdk_nvmf_valid_nqn to check the host_nqn. 2017-05-16 03:19:54 +08:00
rpc include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
scsi scsi: factor out read/write LBA range check 2017-05-18 13:47:42 -07:00
trace include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
util include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
vhost vhost: added rpc commands to remove vhost controllers and devices 2017-05-18 01:01:46 -07:00
Makefile blobfs: Add a lightweight filesystem built on the blobstore 2017-03-24 14:15:45 -07:00