]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: single lvs call to speed up exclude_lvm_osd_devices
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 5 Feb 2026 23:06:19 +0000 (00:06 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 18 Feb 2026 08:53:45 +0000 (08:53 +0000)
commitfb95f60d2a0144ba7336cbcf9f6e92ec10ac1e5f
tree5d6562f8ebd9b10ab5ac16f89be94324fa3ccfa7
parent49bb4a3901bad3442033e1550bdea7e9fc4a6879
ceph-volume: single lvs call to speed up exclude_lvm_osd_devices

Cache all LVs from one global `lvs` call and use it in
`filter_lvm_osd_devices` to avoid repeated subprocesses and speed up
`ceph-volume generic activate` significantly.

Fixes: https://tracker.ceph.com/issues/74804
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 56b2250a28438def7c6c4b829fa4162fb6a8d9c2)
src/ceph-volume/ceph_volume/devices/raw/list.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_zap.py