[PATCH nvme-cli v2] fabrics: Use corresponding hostid when hostnqn is generated

Daniel Wagner dwagner at suse.de
Mon Aug 7 02:15:46 PDT 2023


On Thu, 3 Aug 2023 20:21:39 +0900, Shin'ichiro Kawasaki wrote:
> After the kernel commit ae8bd606e09b ("nvme-fabrics: prevent overriding
> of existing host"), kernel ensures hostid and hostnqn maintain 1:1
> mapping and "non 1:1 mapping will be rejected". This makes 'nvme
> discover' and 'nvme connect' commands fail when they generate hostnqn,
> since it does not use corresponding hostid.
> 
> To avoid the failures, prepare and use corresponding hostid to the
> generated hostnqn, taking the hostid from the hostnqn string. Also add
> checks for prepared hostnqn and hostid. If the hostid taken from the
> generated hostnqn is different from the hostid from file, print a
> warning message. Also, if the prepared hostnqn are inconsistent with the
> prepared hostid, print a warning.
> 
> [...]

Applied, thanks!

[1/1] fabrics: Use corresponding hostid when hostnqn is generated
      commit: 7d1c18f581e489e0cedfd9991bc97a2f8239cf82

Best regards,
-- 
Daniel Wagner <dwagner at suse.de>



More information about the Linux-nvme mailing list