]> git.proxmox.com Git - pve-storage.git/commit - PVE/Diskmanage.pm
Diskmanage: introduce ceph info helper
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 26 Jan 2021 11:45:25 +0000 (12:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Feb 2021 12:52:20 +0000 (13:52 +0100)
commit41f93eceb20b0e8c278fd0f418935785ee6f3052
tree55803e8673dfc7d19d5fdbda4d8120b0861f413e
parentd3857eebb5d39b2223a4eeccb9dcfdb916075359
Diskmanage: introduce ceph info helper

so it can be re-used for partitions.

Also changes the regular expression in get_ceph_volume_info to match the full
device/partition name the LV is on. Not only is this needed for partitions,
especially if there's multiple partitions with an OSD, but it also fixes
handling NVMe devices with an OSD as a side effect. Previuosly those were not
detected here, because of the digits in the name, e.g. /dev/nvme0n1

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Diskmanage.pm