numam-spdk/lib
Daniel Verkamp 48b2e94f66 nvme/rdma: remove newlines from discovery strings
The Linux kernel NVMe-oF target can easily be misconfigured to report
newline-terminated strings from the discovery service, since its
parameters are set by echoing into sysfs files, and echo adds a newline
by default.

Newline characters are not allowed as part of the TRADDR and TRSVCID
fields, since they are defined as ASCII strings in the NVMe specification
sense, which limits the acceptable characters to the 0x20-0x7E range.

However, we can add a workaround for misconfigured targets with trailing
newlines that shouldn't impact any valid configurations.

Change-Id: I5db183d5637128fa8d50c245f4bfa965cc3ce8e2
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/370593
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2017-08-01 13:42:26 -04:00
..
bdev bdev/gpt: compare the correct MBR entry start LBA 2017-08-01 12:47:57 -04:00
blob util/nvme: added io_device unregister callback 2017-07-20 16:07:02 -04:00
blobfs util/nvme: added io_device unregister callback 2017-07-20 16:07:02 -04:00
conf log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
copy copy: Move asynchronous module init to event_copy 2017-06-20 13:46:37 -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: allow spdk_mem_map_free() map to be NULL 2017-06-30 13:53:30 -04:00
event jsonrpc: modify API to pass request to handler 2017-07-06 13:48:12 -04:00
ioat env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
iscsi Make iscsi app to work on freebsd 2017-08-01 13:42:02 -04:00
json json: add function to write UTF-16LE strings 2017-07-12 18:12:52 -04:00
jsonrpc jsonrpc: simplify by removing use of poll() 2017-07-18 17:00:54 -04:00
log jsonrpc: modify API to pass request to handler 2017-07-06 13:48:12 -04:00
net jsonrpc: modify API to pass request to handler 2017-07-06 13:48:12 -04:00
nvme nvme/rdma: remove newlines from discovery strings 2017-08-01 13:42:26 -04:00
nvmf nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
rocksdb rocksdb: set errno to support Myrocks engine 2017-07-13 15:43:55 -04:00
rpc jsonrpc: modify API to pass request to handler 2017-07-06 13:48:12 -04:00
scsi bdev: pass descriptors for I/O operations 2017-07-14 13:31:30 -04:00
trace include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
ut_mock tests: macro-ize the creation and use of wrappers and stubs 2017-07-05 12:00:34 -04:00
util string: add spdk_str_chomp() function 2017-08-01 13:42:26 -04:00
vhost vhost: split iovs which span hugepage boundaries 2017-07-31 13:10:52 -04:00
Makefile Make iscsi app to work on freebsd 2017-08-01 13:42:02 -04:00