[dm-devel] [PATCH] multipathd: add map feature fix

Tejaswini Poluri tejaswinipoluri3 at gmail.com
Fri Jul 10 10:19:55 UTC 2015


Hii,

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:

*Case  : remove and add map.*
root at x86-generic-64:~# multipathd -k'show maps'
name    sysfs uuid
dmpath0 dm-0  1IET_00010001
root at x86-generic-64:~# multipathd -k'remove map dmpath0'
ok
root at x86-generic-64:~# multipathd -k'show maps'
root at x86-generic-64:~# multipathd -k'add map dmpath0'
ok
root at x86-generic-64:~# multipathd -k'show maps'
root at x86-generic-64:~#
Once a map is removed, we are able to add it only using #multipath  command
and not using multipathd tools.

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.
PFA the patches.

It would be great if the patches are reviewed. It would also help if
someone could share the procedure for submission of patches.

Regards,
Tejaswini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20150710/88c19154/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disable_code.patch
Type: text/x-patch
Size: 983 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20150710/88c19154/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_map.patch
Type: text/x-patch
Size: 1662 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20150710/88c19154/attachment-0001.bin>


More information about the dm-devel mailing list