]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: is_mpath predicate for multipath devices
authorLoic Dachary <ldachary@redhat.com>
Mon, 17 Aug 2015 20:52:25 +0000 (22:52 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sat, 29 Aug 2015 00:37:51 +0000 (02:37 +0200)
commit0e34742b968e72aa6ce4a0c95a885dced435b3bc
tree59c7e615cedc30a9c134c9dff6abd9149e8ad7f9
parentf9cbd792f8a8faa922b9fdd00ba1e07e32945706
ceph-disk: is_mpath predicate for multipath devices

The is_mpath predicate returns True if a device is managed by
multipath. It is based on the devicemapper uuid content which is
expected to always contain the mpath- string to identify the multipath
subsystem.

The block_path helper is added to convert the path to a device to the
/sys directory that describes it. It uses the major and minor number
instead of the device name because it is more reliable. The rationale
including an actual example is added as a comment for future
maintainers.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/ceph-disk