same here with the PVE::RADOS object (also in the next patch)
On 4/28/22 13:58, Aaron Lauterer wrote:
Signed-off-by: Aaron Lauterer <[email protected]>
---
PVE/Ceph/Tools.pm | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/PVE/Ceph/Tools.pm b/PVE/Ceph/Tools.pm
index 0c75df0e..b5e60783 100644
--- a/PVE/Ceph/Tools.pm
+++ b/PVE/Ceph/Tools.pm
@@ -255,6 +255,19 @@ sub set_pool {
}
+sub get_pool_properties {
+ my ($pool) = @_;
+ my $command = {
+ prefix => "osd pool get",
+ pool => "$pool",
+ var => "all",
+ format => 'json',
+ };
+
+ my $rados = PVE::RADOS->new();
+ return $rados->mon_command($command);
+}
+
sub create_pool {
my ($pool, $param, $rados) = @_;
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel