]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: single lvs call to speed up exclude_lvm_osd_devices 68116/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 5 Feb 2026 23:06:19 +0000 (00:06 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 31 Mar 2026 07:42:22 +0000 (07:42 +0000)
commitca4ad64258d3a87499a46aeac5df7e20e25a3534
tree3efee06679a601832f6c65b93432bfa22b30b2fc
parentd44fca474e441f0cd3a8d5a922690a56cb7a6b1e
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