]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add two helper functions
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 8 Aug 2023 12:06:41 +0000 (12:06 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 5 Sep 2023 13:23:25 +0000 (15:23 +0200)
commit52c4993551b25384d2acae7b604144a2f6608d55
tree97b625c51bed75e82b45d80dae648cfc248c4a0f
parent7ae97667c9b7e4d86bb8976c2a96700aa3d4b1ce
ceph-volume: add two helper functions

this adds `get_lv_path_from_mapper()` and `get_mapper_from_lv_path()`
functions in api.lvm.

they will help translating either an LV path from `/dev/mapper/LV`
to the format `/dev/VG/LV` or the opposite.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit c7164dfd599a1b406f9f1c870212cc0cbf08317d)
src/ceph-volume/ceph_volume/api/lvm.py