nvme-cli/0001-Revert-fabrics-Use-corresponding-hostid-when-hostnqn.patch

21 lines
645 B
Diff
Raw Normal View History

diff --git a/fabrics.c b/fabrics.c
index 1a53b232da23..0d80dfc5b044 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -636,6 +636,7 @@ char *nvmf_hostid_from_hostnqn(const char *hostnqn)
void nvmf_check_hostid_and_hostnqn(const char *hostid, const char *hostnqn, unsigned int verbose)
{
+#if 0
char *hostid_from_file, *hostid_from_hostnqn;
if (!hostid)
@@ -659,6 +660,7 @@ void nvmf_check_hostid_and_hostnqn(const char *hostid, const char *hostnqn, unsi
"warning: use hostid which does not match uuid in hostnqn\n");
free(hostid_from_hostnqn);
}
+#endif
}
int nvmf_discover(const char *desc, int argc, char **argv, bool connect)