Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b483da1 authored by Guan Junxiong's avatar Guan Junxiong Committed by Sagi Grimberg
Browse files

nvme-fabrics: log a warning if hostid is invalid



This helps users to quickly spot the reason of why connection fails
if the hostid is not compliant with the uuid format.

Signed-off-by: default avatarGuan Junxiong <guanjunxiong@huawei.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 09fdc23b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -735,6 +735,7 @@ static int nvmf_parse_options(struct nvmf_ctrl_options *opts,
				goto out;
			}
			if (uuid_parse(p, &hostid)) {
				pr_err("Invalid hostid %s\n", p);
				ret = -EINVAL;
				goto out;
			}