OSDN Git Service

nvme-fabrics: log a warning if hostid is invalid
authorGuan Junxiong <guanjunxiong@huawei.com>
Thu, 3 Aug 2017 13:40:26 +0000 (21:40 +0800)
committerSagi Grimberg <sagi@grimberg.me>
Mon, 28 Aug 2017 20:00:37 +0000 (23:00 +0300)
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: Guan Junxiong <guanjunxiong@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c

index 5f5cd30..fc3b655 100644 (file)
@@ -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;
                        }