<div dir="ltr">Hi,<div><br></div><div>this patch seems to be orphaned from its patchset.</div><div>Do you maintain your request for inclusion ?</div><div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 12, 2017 at 9:35 AM, y00378701 <span dir="ltr"><<a href="mailto:yangjie65@huawei.com" target="_blank">yangjie65@huawei.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Assign sg_id.channel to controller id of the NVMe/NVMf target<br>
and assign sg_id.lun to namespace ID of the target.<br>
<br>
Signed-off-by: Jie Yang <a href="mailto:yangjie65@huawei.com">yangjie65@huawei.com</a><br>
Reviewed-by: Guan Junxiong <a href="mailto:guanjunxiong@huawei.com">guanjunxiong@huawei.com</a><br>
---<br>
 libmultipath/discovery.c | 4 +++-<br>
 1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c<br>
index efac824..f1d303e 100644<br>
--- a/libmultipath/discovery.c<br>
+++ b/libmultipath/discovery.c<br>
@@ -1206,12 +1206,14 @@ nvme_sysfs_pathinfo (struct path * pp, vector hwtable)<br>
                   &pp->sg_id.scsi_id) != 2)<br>
                return 1;<br>
        pp->sg_id.channel = 0;<br>
-       pp->sg_id.lun = 0;<br>
+       pp->sg_id.lun = atoi(udev_device_get_sysattr_<wbr>value(pp->udev, "nsid"));<br>
<br>
        parent = udev_device_get_parent(pp-><wbr>udev);<br>
        if (!parent)<br>
                return 1;<br>
<br>
+       pp->sg_id.channel = atoi(udev_device_get_sysattr_<wbr>value(parent, "cntlid"));<br>
+<br>
        snprintf(pp->vendor_id, SCSI_VENDOR_SIZE, "NVME");<br>
        snprintf(pp->product_id, SCSI_PRODUCT_SIZE, "%s",<br>
                 udev_device_get_sysattr_value(<wbr>parent, "model"));<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.8.1.windows.1<br>
<br>
<br>
</font></span></blockquote></div><br></div>