[PATCH nvmetcli] nvmet: store DHCHAP attributes
Hannes Reinecke
hare at suse.de
Tue Sep 30 04:55:33 PDT 2025
On 8/22/25 13:51, hare at kernel.org wrote:
> 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)
Christoph?
Ping?
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +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
More information about the Linux-nvme
mailing list