]> git-server-git.apps.pok.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>
Thu, 10 Aug 2023 09:05:37 +0000 (09:05 +0000)
commitc7164dfd599a1b406f9f1c870212cc0cbf08317d
tree88de10c483af2b56327528cf4a79448711a80c4e
parent2b672e0d8bf7df65170cfa4057b9c014f5c6568a
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>
src/ceph-volume/ceph_volume/api/lvm.py