Comment 2 for bug 1466444

Revision history for this message
Lee Yarwood (lyarwood) wrote :

@apahim we are actually trying to traverse the other way, starting with a single path device and working out the virtual mpath dm device details. We could actually use a glob to do this instead of `multipath -l /dev/path` :

~~~
# ll /sys/devices/virtual/block/*/slaves/sdk
lrwxrwxrwx. 1 root root 0 Jun 3 03:56 /sys/devices/virtual/block/dm-2/slaves/sdk -> ../../../../pci0000:00/0000:00:07.0/0000:1a:00.0/host0/rport-0:0-8/target0:0:3/0:0:3:3/block/sdk
~~~

IMHO moving to this method is out of scope for this bug but I will try to write up a spec detailing how we could use this method in os-brick.