Blame libnvme-1.5-nbft-HOSTID-HOSTNQN-_CONFIGURED.patch
|
Tomas Bzatek |
aa9c0e |
From 1617d1a3f42a25a2e99073811174609abcffc34d Mon Sep 17 00:00:00 2001
|
|
Tomas Bzatek |
aa9c0e |
From: Tomas Bzatek <tbzatek@redhat.com>
|
|
Tomas Bzatek |
aa9c0e |
Date: Thu, 13 Apr 2023 18:27:39 +0200
|
|
Tomas Bzatek |
aa9c0e |
Subject: [PATCH 12/18] nbft: Parse the {HOSTID,HOSTNQN}_CONFIGURED flags
|
|
Tomas Bzatek |
aa9c0e |
|
|
Tomas Bzatek |
aa9c0e |
---
|
|
Tomas Bzatek |
aa9c0e |
src/nvme/nbft.c | 2 ++
|
|
Tomas Bzatek |
aa9c0e |
1 file changed, 2 insertions(+)
|
|
Tomas Bzatek |
aa9c0e |
|
|
Tomas Bzatek |
aa9c0e |
diff --git a/src/nvme/nbft.c b/src/nvme/nbft.c
|
|
Tomas Bzatek |
aa9c0e |
index 940dd8e..c0af2b3 100644
|
|
Tomas Bzatek |
aa9c0e |
--- a/src/nvme/nbft.c
|
|
Tomas Bzatek |
aa9c0e |
+++ b/src/nvme/nbft.c
|
|
Tomas Bzatek |
aa9c0e |
@@ -560,6 +560,8 @@ static int parse_raw_nbft(struct nbft_info *nbft)
|
|
Tomas Bzatek |
aa9c0e |
nbft->host.id = (unsigned char *) &(host->host_id);
|
|
Tomas Bzatek |
aa9c0e |
if (get_heap_obj(host, host_nqn_obj, 1, &nbft->host.nqn) != 0)
|
|
Tomas Bzatek |
aa9c0e |
return -EINVAL;
|
|
Tomas Bzatek |
aa9c0e |
+ nbft->host.host_id_configured = host->flags & NBFT_HOST_HOSTID_CONFIGURED;
|
|
Tomas Bzatek |
aa9c0e |
+ nbft->host.host_nqn_configured = host->flags & NBFT_HOST_HOSTNQN_CONFIGURED;
|
|
Tomas Bzatek |
aa9c0e |
|
|
Tomas Bzatek |
aa9c0e |
/*
|
|
Tomas Bzatek |
aa9c0e |
* HFI
|
|
Tomas Bzatek |
aa9c0e |
--
|
|
Tomas Bzatek |
aa9c0e |
2.39.2
|
|
Tomas Bzatek |
aa9c0e |
|