]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: multipath support for is_partition and list_partitions
authorLoic Dachary <ldachary@redhat.com>
Mon, 17 Aug 2015 21:25:45 +0000 (23:25 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sat, 29 Aug 2015 00:37:51 +0000 (02:37 +0200)
commit3bc95dfc1b88c01e16c3df04e96acced777b344a
tree247114ee6a4adda61d64fc39ef2606aca7dbfb8d
parent2fca91eb2a84b5b92f9d0eac6ef3894ed23340ff
ceph-disk: multipath support for is_partition and list_partitions

The is_partition predicate and the list_partitions function support
devices managed by multipath.

A set of helpers dedicated to multipath devices is implemented because
the content of the corresponding /sys directory does not use the same
conventions as regular devices regarding partitions.

Instead of relying on subdirectories such as /sys/block/name/name1, the
devicemapper uuid file is used and expected to start with part\d+. The
holders/slaves directories provide pointers between the whole device and
the partition devices.

Although these structural differences reduce the opportunity for
code factorization, it is easier for backward compatibility since the
multipath specific logic is limited to if is_mpath(dev) branches.

http://tracker.ceph.com/issues/11881 Refs: #11881

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