nvme-cli/0001-Revert-fabrics-Use-corresponding-hostid-when-hostnqn.patch
Tomas Bzatek 3e81399d53 Sync with RHEL 9:
- generate hostnqn and hostid in %post
- silence hostnqn-hostid consistency checks
2024-05-03 18:28:24 +02:00

20 lines
710 B
Diff

diff -up nvme-cli-2.9.1/fabrics.c.bak nvme-cli-2.9.1/fabrics.c
--- nvme-cli-2.9.1/fabrics.c.bak 2024-05-03 16:03:42.000000000 +0200
+++ nvme-cli-2.9.1/fabrics.c 2024-05-03 18:26:34.915157152 +0200
@@ -643,6 +643,7 @@ char *nvmf_hostid_from_hostnqn(const cha
void nvmf_check_hostid_and_hostnqn(const char *hostid, const char *hostnqn, unsigned int verbose)
{
+#if 0
_cleanup_free_ char *hostid_from_file = NULL;
_cleanup_free_ char *hostid_from_hostnqn = NULL;
@@ -665,6 +666,7 @@ void nvmf_check_hostid_and_hostnqn(const
fprintf(stderr,
"warning: use hostid which does not match uuid in hostnqn\n");
}
+#endif
}
int nvmf_discover(const char *desc, int argc, char **argv, bool connect)