Spdk/lib/nvme
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
..
Makefile nvme: Monitor uevent for device insert and remove 2016-11-30 14:27:43 -07:00
nvme_ctrlr_cmd.c nvme: track qpair within nvme_request 2017-04-12 21:05:23 -07:00
nvme_ctrlr.c nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
nvme_internal.h nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
nvme_ns_cmd.c nvme: fix _nvme_ns_cmd_split_sgl_request for last SGE not page aligned 2017-07-31 13:10:52 -04:00
nvme_ns.c nvme: initialize namespace capability flags with correct order 2017-03-10 11:39:09 -07:00
nvme_pcie.c nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
nvme_qpair.c nvme: no need to send abort notification for died application 2017-06-20 15:43:21 -04:00
nvme_quirks.c nvme: add NVME_QUIRK_DELAY_AFTER_QUEUE_ALLOC 2017-05-01 10:22:18 -07:00
nvme_rdma.c nvme/rdma: remove newlines from discovery strings 2017-08-01 13:42:26 -04:00
nvme_transport.c nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
nvme_uevent.c nvme/uevent: use env PCI addr helper functions 2017-06-23 11:20:05 -04:00
nvme_uevent.h nvme: Remove pci_addr from probe_info 2016-12-12 10:46:50 -07:00
nvme.c nvme: add API to convert trtype and adrfam to string 2017-06-30 12:43:18 -04:00