]> 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>
Tue, 31 Mar 2026 07:42:15 +0000 (07:42 +0000)
commitd44fca474e441f0cd3a8d5a922690a56cb7a6b1e
tree844212607e0eedf39715bf9cc8e9668f5110336f
parentfda7219af5e799698ffb0f6ef70375b2bc24b0ec
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