]> git.proxmox.com Git - librados2-perl.git/commit
mon_command: refactor to pass all data to perl
authorAaron Lauterer <a.lauterer@proxmox.com>
Fri, 25 Mar 2022 10:55:04 +0000 (11:55 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Nov 2022 13:04:02 +0000 (14:04 +0100)
commitf65e5245f717ce51ef156b5f5960cbf05a8527f6
tree648201532c8c288a33fe30faccb1c2746ee95666
parent9f08da02c6e1833c11f5f0cc83d3527a806dccda
mon_command: refactor to pass all data to perl

By passing back all return values from the Ceph API (RADOS.xs) to Perl
we are more flexible to make more than just the data available further
up the stack. These values are:

* return code
* status message (can contain useful information)
* data

The Ceph API interaction happens in a child process. We need to en- and
decode the returned hash in JSON to pass it between the child and parent
process.

RADOS.pm::mon_command now returns not just the data, but all information
as a hash ref.  Therefore dependent packages (pve-manager, pve-storage)
need to adapt.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
PVE/RADOS.pm
RADOS.xs