]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: refactor get_physical_osds()
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 14 Feb 2025 12:34:50 +0000 (12:34 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 20 Feb 2025 12:14:48 +0000 (12:14 +0000)
commit140199b098bcc203b480330dbd8547230a7954c2
treead10b7585856a58d39eba56329f870eecbadbfb3
parent7dfeceed4a6996c32df6f56454d91d217ad32926
ceph-volume: refactor get_physical_osds()

This refactors `get_physical_osds()`.
The calculation of `data_slots` is now more concise. The handling of
`dev_size`, `rel_data_size`, and `abs_size` is standardized.
The initialization of `free_size` is moved outside the loop
for clarity. Redundant checks and assignments are removed to simplify
the code.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/devices/lvm/batch.py