nvmf: add spdk_ prefix to nvmf_find_subsystem()
Change-Id: I02a44c3790830b3918dca418c6bb85e82ddac273 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/363298 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
6a2710d5d3
commit
1c7b6f8dab
@ -150,7 +150,7 @@ int spdk_nvmf_subsystem_start(struct spdk_nvmf_subsystem *subsystem);
|
||||
|
||||
void spdk_nvmf_delete_subsystem(struct spdk_nvmf_subsystem *subsystem);
|
||||
|
||||
struct spdk_nvmf_subsystem *nvmf_find_subsystem(const char *subnqn);
|
||||
struct spdk_nvmf_subsystem *spdk_nvmf_find_subsystem(const char *subnqn);
|
||||
|
||||
bool spdk_nvmf_subsystem_exists(const char *subnqn);
|
||||
|
||||
|
@ -160,7 +160,7 @@ nvmf_process_connect(struct spdk_nvmf_request *req)
|
||||
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
||||
}
|
||||
|
||||
subsystem = nvmf_find_subsystem(data->subnqn);
|
||||
subsystem = spdk_nvmf_find_subsystem(data->subnqn);
|
||||
if (subsystem == NULL) {
|
||||
SPDK_ERRLOG("Could not find subsystem '%s'\n", data->subnqn);
|
||||
INVALID_CONNECT_DATA(subnqn);
|
||||
|
@ -255,7 +255,7 @@ spdk_nvmf_session_connect(struct spdk_nvmf_conn *conn,
|
||||
SPDK_TRACELOG(SPDK_TRACE_NVMF, " subnqn: \"%s\"\n", data->subnqn);
|
||||
SPDK_TRACELOG(SPDK_TRACE_NVMF, " hostnqn: \"%s\"\n", data->hostnqn);
|
||||
|
||||
subsystem = nvmf_find_subsystem(data->subnqn);
|
||||
subsystem = spdk_nvmf_find_subsystem(data->subnqn);
|
||||
if (subsystem == NULL) {
|
||||
SPDK_ERRLOG("Could not find subsystem '%s'\n", data->subnqn);
|
||||
INVALID_CONNECT_DATA(subnqn);
|
||||
|
@ -64,7 +64,7 @@ spdk_nvmf_subsystem_exists(const char *subnqn)
|
||||
}
|
||||
|
||||
struct spdk_nvmf_subsystem *
|
||||
nvmf_find_subsystem(const char *subnqn)
|
||||
spdk_nvmf_find_subsystem(const char *subnqn)
|
||||
{
|
||||
struct spdk_nvmf_subsystem *subsystem;
|
||||
|
||||
|
@ -121,7 +121,7 @@ spdk_nvmf_get_discovery_log_page(void *buffer, uint64_t offset, uint32_t length)
|
||||
}
|
||||
|
||||
struct spdk_nvmf_subsystem *
|
||||
nvmf_find_subsystem(const char *subnqn)
|
||||
spdk_nvmf_find_subsystem(const char *subnqn)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ spdk_nvmf_find_subsystem_with_cntlid(uint16_t cntlid)
|
||||
}
|
||||
|
||||
struct spdk_nvmf_subsystem *
|
||||
nvmf_find_subsystem(const char *subnqn)
|
||||
spdk_nvmf_find_subsystem(const char *subnqn)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
@ -240,8 +240,8 @@ nvmf_test_create_subsystem(void)
|
||||
static void
|
||||
nvmf_test_find_subsystem(void)
|
||||
{
|
||||
CU_ASSERT_PTR_NULL(nvmf_find_subsystem(NULL));
|
||||
CU_ASSERT_PTR_NULL(nvmf_find_subsystem("fake"));
|
||||
CU_ASSERT_PTR_NULL(spdk_nvmf_find_subsystem(NULL));
|
||||
CU_ASSERT_PTR_NULL(spdk_nvmf_find_subsystem("fake"));
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
Loading…
Reference in New Issue
Block a user