nvmet: store DHCHAP attributes
PATCH 1/1 nvmet: store DHCHAP attributes
From: Hannes Reinecke <[email protected]>
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 <[email protected]>
--- nvmet/nvme.py | 1 + 1 file changed, 1 insertion(+)
nvmet/nvme.py +1 -0
@@ -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)
Signature · 1 line
2.43.0
Quoted 16 lines · On 8/22/25 13:51, [email protected] wrote:
From: Hannes Reinecke <[email protected]>
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 <[email protected]>--- nvmet/nvme.py | 1 + 1 file changed, 1 insertion(+)nvmet/nvme.py +0
-0
nvmet/nvme.py class Host(CFSNode): · line 898
Quoted 7 lines
nvmet/nvme.py +1
-0@@ -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)
Christoph?
Ping?
Cheers,
Hannes
Signature · 4 lines
Dr. Hannes Reinecke Kernel Storage Architect [email protected] +49 911 74053 688 SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich