numam-spdk/lib/bdev
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
..
aio bdev: unify all direct bdev_io I/O types 2017-09-22 13:44:25 -04:00
error bdev/error: use bdev_part helper functions 2017-09-12 11:16:50 -04:00
gpt bdev/gpt: fix use after free of gpt_base 2017-09-14 14:26:40 -04:00
lvol lvol: remove page_size field from lvol store struct 2017-09-22 15:53:06 -04:00
malloc copy: return 0 on success and appropriate errno on failure 2017-09-25 13:56:29 -04:00
null bdev: unify all direct bdev_io I/O types 2017-09-22 13:44:25 -04:00
nvme bdev/nvme: clean up submit_request return codes 2017-09-25 13:56:29 -04:00
rbd bdev: unify all direct bdev_io I/O types 2017-09-22 13:44:25 -04:00
rpc bdev: remove bdev_opened_for_write restriction 2017-09-20 14:43:32 -04:00
split bdev: add common partition helper functions 2017-09-12 11:16:50 -04:00
virtio bdev/virtio: simplify READ/WRITE 10/16 logic 2017-09-22 15:39:15 -04:00
bdev.c bdev: clean up spdk_bdev_io_complete a bit 2017-09-25 13:56:29 -04:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00
scsi_nvme.c nvme_spec: remove SGL Sub Type Invalid status code 2017-09-22 17:11:53 -04:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00