]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: avoid Device() instantiation in lvm OSD filtering
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 22 Jan 2026 12:55:48 +0000 (12:55 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 18 Feb 2026 08:53:45 +0000 (08:53 +0000)
commit49bb4a3901bad3442033e1550bdea7e9fc4a6879
tree2c775bf95f2bda354d3faf84d1ea477b2e1720d9
parent3f832608b134e704361bbb465101590ce67548ea
ceph-volume: avoid Device() instantiation in lvm OSD filtering

Replace Device() instantiation with direct LVM API calls to reduce
subprocess overhead.
Use sysfs check first, then only query LVM for actual LVs.
caches LVM mappers list to avoid repeated sysfs reads.

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