numam-spdk/lib
Jim Harris a0d7056f11 copy: return 0 on success and appropriate errno on failure
This code was still using an old paradigm of returning the
number of bytes associated with a successful submission.
Just return 0 on success instead - if caller needs the
number of bytes for some reason they have the information
to get it.

While here, return an appropriate negated errno where possible -
we especially want ENOMEM returned when an ioat channel runs out
of descriptors.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I5858ccd6cff916b6c80fda7d2c9fce96fb39ef89

Reviewed-on: https://review.gerrithub.io/378858
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-09-25 13:56:29 -04:00
..
bdev copy: return 0 on success and appropriate errno on failure 2017-09-25 13:56:29 -04:00
blob blobstore: do not _spdk_bs_free before io devices are registered 2017-09-22 15:35:32 -04:00
blobfs blobfs: Make the behaviour of "delete file" as unlink. 2017-09-15 17:13:14 -04:00
conf log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
copy copy: return 0 on success and appropriate errno on failure 2017-09-25 13:56:29 -04: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 detected include file path 2017-09-12 16:43:20 -04:00
event reactor: add context_switch_monitor RPC 2017-09-01 12:46:18 -04:00
ioat copy: return 0 on success and appropriate errno on failure 2017-09-25 13:56:29 -04:00
iscsi iscsi: fix layout of logout request reason field 2017-09-22 16:11:11 -04:00
json json: add function to write UTF-16LE strings 2017-07-12 18:12:52 -04:00
jsonrpc log: rename SPDK_TRACELOG to SPDK_DEBUGLOG 2017-08-29 13:25:58 -04:00
log log: add new parm to spdk_trace_dump() 2017-09-06 17:33:03 -04:00
lvol lvol: remove page_size field from lvol store struct 2017-09-22 15:53:06 -04:00
nbd nbd, nvmf: fix clang 4.0 packed member warnings 2017-09-07 12:15:45 -04:00
net log: remove uses of SPDK_TRACE_DEBUG 2017-08-29 15:07:13 -04:00
nvme nvme_spec: remove SGL Sub Type Invalid status code 2017-09-22 17:11:53 -04:00
nvmf nvmf: don't allow 0xFFFFFFFF as a NSID 2017-09-19 17:16:59 -04:00
rocksdb lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00
rpc rpc: add get_rpc_methods RPC call 2017-08-01 13:43:14 -04:00
scsi scsi: remove LUN I/O channel ref counting 2017-09-01 12:46:43 -04:00
trace lib: replace strerror with strerror_r 2017-08-15 16:47:01 -04:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util util: fail io_device unregister if foreach operations outstanding 2017-09-20 19:27:06 -04:00
vhost rpc/vhost_scsi: defer remove_scsi_dev RPC response 2017-09-22 14:13:40 -04:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00