]> git.proxmox.com Git - pve-manager-legacy.git/commit
api: ceph ec pools: move to format-str, create ec in worker, reuse $rados
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Apr 2022 18:23:24 +0000 (20:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Apr 2022 18:26:38 +0000 (20:26 +0200)
commit539443264111476f57148ba351bcb9da2de3d9b2
treefa8d1cb4d296037013a68c05450a9e071b17f12a
parente039e8512b35034ff2dfd0766933166975ff7ff6
api: ceph ec pools: move to format-str, create ec in worker, reuse $rados

moved to a format string 'erasurce-coded', that allows also to drop
most of the param existence checking as we can set the correct
optional'ness in there.  Also avoids bloating the API to much for
just this.

Reuse the $rados connection more often to avoid to much
overhead/lingering sockets (the rados connection stays around in the
background to allow efficient reuse)

really should be three separate commits, but too intertwined and too
late for me to care tbh.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Ceph/Pools.pm