[PATCH nvmetcli] nvmet: store DHCHAP attributes
hare at kernel.org
hare at kernel.org
Fri Aug 22 04:51:55 PDT 2025
From: Hannes Reinecke <hare at kernel.org>
The DHCHAP authentication is stored under hosts/, and are starting
with 'dhchap_'. So add a 'dhchap' attribute group for the host object
to correctly save and restore DHCHAP values.
Signed-off-by: Hannes Reinecke <hare at kernel.org>
---
nvmet/nvme.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/nvmet/nvme.py b/nvmet/nvme.py
index 59efdb5..679116e 100644
--- a/nvmet/nvme.py
+++ b/nvmet/nvme.py
@@ -892,6 +892,7 @@ class Host(CFSNode):
'''
super(Host, self).__init__()
+ self.attr_groups = ['dhchap']
self.nqn = nqn
self._path = "%s/hosts/%s" % (self.configfs_dir, nqn)
self._create_in_cfs(mode)
--
2.43.0
More information about the Linux-nvme
mailing list