<div dir="ltr">Hii, <div><br></div><div>Its found that the add map feature of multipathd tools is not working. i.e its  not able to add the map again once removed. The following is the test case:</div><div><b style="font-size:12.8000001907349px"><br></b></div><div><b style="font-size:12.8000001907349px">Case  : remove and add map.</b><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">root@x86-generic-64:~# multipathd -k'show maps'</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">name    sysfs uuid</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">dmpath0 dm-0  1IET_00010001</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">root@x86-generic-64:~# multipathd -k'remove map dmpath0'</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">ok</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">root@x86-generic-64:~# multipathd -k'show maps'</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">root@x86-generic-64:~# multipathd -k'add map dmpath0'</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">ok</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">root@x86-generic-64:~# multipathd -k'show maps'</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">root@x86-generic-64:~#</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Once a map is removed, we are able to add it only using #multipath  command and not using multipathd tools.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">I worked on a fix for the same and the following patch solves the problem. There is also some unused code which could removed here in ev_add_map function. </span></div><div><span style="font-size:12.8000001907349px">PFA the patches.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">It would be great if the patches are reviewed. It would also help if someone could share the procedure for submission of patches.</span></div><div><br></div><div><span style="font-size:12.8000001907349px">Regards,</span></div><div><span style="font-size:12.8000001907349px">Tejaswini </span><br style="font-size:12.8000001907349px"></div></div>