]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: refactor LvmBlueStore.setup_device() 62648/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 18 Mar 2025 14:20:51 +0000 (14:20 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 3 Apr 2025 10:15:48 +0000 (10:15 +0000)
commit7626c12e5fd4800187963f3b7f8691eb2847c119
tree4b9eb209ea2d3bf9b6c160fdf1b1f8895e5d0895
parent4034cae6b022dd633e2b7be24e1c4fa684317c4d
ceph-volume: refactor LvmBlueStore.setup_device()

This refactores redundant device setup calls in LvmBlueStore class:
Calling the same function twice with different arguments for WAL
and DB devices was inefficient and unnecessary.
The new implementation simplifies the logic by directly accessing
`self.args`, it removes the need for passing arguments manually.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/objectstore/lvmbluestore.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py
src/ceph-volume/ceph_volume/tests/objectstore/test_lvmbluestore.py