]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/CephTools.pm
ceph: add CephFS create and list API
[pve-manager.git] / PVE / CephTools.pm
index cc594f8a7b0f068016bde610af166b29081d7f46..825fc22f7561195fbb7872660cc4595445d42e4b 100644 (file)
@@ -240,6 +240,18 @@ sub create_pool {
 
 }
 
+sub ls_pools {
+    my ($pool, $rados) = @_;
+
+    if (!defined($rados)) {
+       $rados = PVE::RADOS->new();
+    }
+
+    my $res = $rados->mon_command({ prefix => "osd lspools" });
+
+    return $res;
+}
+
 sub destroy_pool {
     my ($pool, $rados) = @_;