[PATCH] nvme-cli: fabrics: Fix to pass "host_traddr" to the kernel driver.

Sagi Grimberg sagi at grimberg.me
Wed Feb 15 01:56:49 PST 2017


> @@ -595,6 +595,11 @@ static int connect_ctrl(struct nvmf_disc_rsp_page_entry *e)
>  				return -EINVAL;
>  			p += len;
>
> +			len = sprintf(p, ",host_traddr=%s", cfg.host_traddr);
> +			if (len < 0)
> +				return -EINVAL;
> +			p+= len;
> +

I think this needs to be conditional on if provided at all.



More information about the Linux-nvme mailing list