]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: multipath support for split_dev_base_partnum
authorLoic Dachary <ldachary@redhat.com>
Mon, 17 Aug 2015 21:51:24 +0000 (23:51 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sat, 29 Aug 2015 00:37:51 +0000 (02:37 +0200)
commit77ff7c3dc6dd6861b094e5a53d329de0802f3032
tree0cc86acf74bdd881575972bd14d7f6096b2de94b
parent3bc95dfc1b88c01e16c3df04e96acced777b344a
ceph-disk: multipath support for split_dev_base_partnum

split_dev_base_partnum returns the path of the whole disk in
/dev/mapper. The base variable name to designate the device for the
whole disk is a misnomer since it cannot be used as a basename to
rebuild the parition device name in the case of multipath.

The logic of split_dev_base_partnum for devices is reworked to use
/sys/dev/block/M:m/partition instead of device name parsing.

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

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