]> git.proxmox.com Git - pve-storage.git/commit
Disks: return correct journal disk candidates
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 26 Jan 2021 11:45:17 +0000 (12:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Feb 2021 12:52:20 +0000 (13:52 +0100)
commitb2843044ba17bdd3640931243653baf80a76f1ba
tree3d76d77db25215c474c9c65d75804cd4c38fac76
parentacc9c3acbc58e4c94b649a7de01b458197f53532
Disks: return correct journal disk candidates

Previously any GPT initialized disk without an osdid (i.e. equal to -1) would
be included in the list of journal disk candidates, for example a ZFS disk. But
the OSD creation API call will fail for those. To fix it, re-use the condition
from the corresponding check in that API call (in PVE/API2/Ceph/OSD.pm).
Now, included disks are unused disks, those with usage 'partitions' and GPT, and
those with usage 'LVM'.

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