Spdk/lib
Darek Stojaczyk e5b455a150 bdev/nvme: forbid attaching two controllers with the same name
Right now a controller with a duplicated name will likely
fail to create any bdevs (as those can't have duplicated
names), but will still attach successfully. There will be
two controllers with the very same name and while this
doesn't seem to cause any data corruptions, it introduces
slightly non-intuitive behavior. After all, the controllers
are identified by their name and those should be unique.

This wasn't a major concern until we allowed creating
NVMe controllers without any namespaces.

Change-Id: I55dd67ef0b4e8a23f19269f9967109c4f54aec95
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/434316
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
2018-12-03 19:52:26 +00:00
..
bdev bdev/nvme: forbid attaching two controllers with the same name 2018-12-03 19:52:26 +00:00
blob log: remove "trace" from internal API 2018-12-03 19:50:15 +00:00
blobfs log: remove "trace" from internal API 2018-12-03 19:50:15 +00:00
conf conf: don't strdup name if section already exist 2018-05-17 17:13:19 +00:00
copy lib/copy: unregister copy engine on finish 2018-10-15 17:42:20 +00:00
env_dpdk pci: remove error prints on detach failures 2018-11-30 19:59:34 +00:00
event app: rename traceflag cmdline option to logflag 2018-12-03 19:50:15 +00:00
ioat ioat: change the return type of ioat_channel_destruct() to be void 2018-09-18 22:41:00 +00:00
iscsi log: remove "trace" from internal API 2018-12-03 19:50:15 +00:00
json json: Use not C++ style comments // but C-style comments /* */ 2018-10-31 22:01:47 +00:00
jsonrpc jsonrpc client: move around functions so no forwad declaration is needed 2018-11-19 20:30:03 +00:00
log app: rename traceflag cmdline option to logflag 2018-12-03 19:50:15 +00:00
lvol lvol: check spdk_lvol for NULL before dereferencing it 2018-11-20 15:01:57 +00:00
nbd nbd: fixup return codes 2018-11-28 22:55:09 +00:00
net lib: fix typos in the lib directory 2018-08-24 17:15:12 +00:00
nvme log: remove "trace" from internal API 2018-12-03 19:50:15 +00:00
nvmf log: remove "trace" from internal API 2018-12-03 19:50:15 +00:00
reduce reduce: clean up a few items found during code review 2018-11-20 14:50:27 +00:00
rocksdb build: remove xx_MODULES_LINKER_ARGS and xx_MODULES_FILES 2018-11-28 16:43:01 +00:00
rpc rpc: add function to get the current RPC state 2018-11-08 23:04:50 +00:00
scsi log: remove "trace" from internal API 2018-12-03 19:50:15 +00:00
sock net: add asynchronous initialization and finish 2018-11-07 17:08:27 +00:00
thread lib/thread: check for NULL return on _get_thread() 2018-11-20 15:03:17 +00:00
trace lib/trace: show specific usage of trace mask 2018-11-30 14:52:28 +00:00
ut_mock ut_mock: rename library from spdk_mock to ut_mock 2018-11-20 14:57:57 +00:00
util util: make spdk_parse_ip_addr return -EINVAL instead -1 2018-10-12 23:34:27 +00:00
vhost log: remove "trace" from internal API 2018-12-03 19:50:15 +00:00
virtio virtio: support dynamic memory registrations 2018-10-23 18:02:12 +00:00
Makefile reduce: add configure option 2018-11-08 00:01:47 +00:00