<div dir="ltr">This set is now merged.<div>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 18, 2017 at 9:29 AM, Martin Wilck <span dir="ltr"><<a href="mailto:mwilck@suse.com" target="_blank">mwilck@suse.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Current code fails to set up multipath maps for NVME devices in a<br>
Linux target/Linux host combination. This series enables at least<br>
basic operation.<br>
<br>
Patch 1/4 fixes a crash that happens if over-long WWIDs are encountered, and<br>
is not specific to NVME as such. Patch 2/4 drops<br>
the broken test uevent_can_discard_by_devpath(<wbr>). Patch 3/4 compensates<br>
for the additional event processing required by 2/4. Patch 4/4 mangles<br>
overlong "nvme.*" WWIDs to make them usable for multipath (related discussion<br>
in [1]; WWID_SIZE can't be simply increased because it has to match<br>
device mapper's DM_NAME_LEN).<br>
<br>
Changes wrt v1:<br>
 1/4: assure 0-termination by using strlcpy() (Bart van Assche)<br>
 4/4: drop extra length test (Ben Marzinski)<br>
<br>
I kept the v1 Reviewed-by: and Acked-by tags because the changes are minor,<br>
I hope that's ok for the reviewers.<br>
<br>
[1] <a href="http://lists.infradead.org/pipermail/linux-nvme/2017-July/011960.html" rel="noreferrer" target="_blank">http://lists.infradead.org/<wbr>pipermail/linux-nvme/2017-<wbr>July/011960.html</a><br>
<br>
Martin Wilck (4):<br>
  libmultipath: get_udev_uid: make sure pp->wwid is 0-terminated<br>
  libmultipath: drop uevent_can_discard_by_devpath<br>
  libmultipath: only listen for uevents with DEVTYPE=disk<br>
  libmultipath: fix over-long NVME WWIDs<br>
<br>
 libmultipath/discovery.c | 85 ++++++++++++++++++++++++++++++<wbr>+++++++++++++++---<br>
 libmultipath/uevent.c    | 27 +--------------<br>
 2 files changed, 82 insertions(+), 30 deletions(-)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.13.2<br>
<br>
</font></span></blockquote></div><br></div>