]> git.apps.os.sepia.ceph.com Git - ceph-ci.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:22:57 +0000 (15:22 +0200)
commitda7c5a9a8017d55105e232879c79c4cb6806b8fb
tree0b885910662731fad9fb4426566ecfc153f74dae
parentfc67d924930ebf9a4d41c9f9247b94162250400d
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