]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: mpath: Don't error on target_type=NULL
authorCole Robinson <crobinso@redhat.com>
Wed, 13 Apr 2016 21:29:59 +0000 (17:29 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 20 Apr 2016 13:23:12 +0000 (09:23 -0400)
commit2f80aed70e6e6b23014abf47178a936b13b01cad
tree04984e50b9a48e774ab6b57f07ef73f8fc68313c
parent886cfe71ae732f2b5987599e3dbf3c045893f1d9
storage: mpath: Don't error on target_type=NULL

We use device-mapper to enumerate all dm devices, and filter out
the list of multipath devices by checking the target_type string
name. The code however cancels all scanning if we encounter
target_type=NULL

I don't know how to reproduce that situation, but a user was hitting
it in their setup, and inspecting the lvm2/device-mapper code shows
many places where !target_type is explicitly ignored and processing
continues on to the next device. So I think we should do the same

https://bugzilla.redhat.com/show_bug.cgi?id=1069317
(cherry picked from commit 8f8c0feb113420625f15b7f1e17bfd719c977eeb)
src/storage/storage_backend_mpath.c