]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/java/java/com/ceph/fs/CephMount.java
update sources to v12.1.3
[ceph.git] / ceph / src / java / java / com / ceph / fs / CephMount.java
index d1267142c3ecfea8bf76738c80617752e428e248..786a6ece2f5888df39b9bc06d29256ee5163c3c5 100644 (file)
@@ -938,6 +938,22 @@ public class CephMount {
   }
 
   private static native String native_ceph_get_file_pool_name(long mountp, int fd);
+  
+  /**
+   * Get the default data pool of cephfs.
+   * 
+   * @return The pool name.
+   */ 
+  public String get_default_data_pool_name() {
+    rlock.lock();
+    try {
+      return native_ceph_get_default_data_pool_name(instance_ptr);
+    } finally {
+      rlock.unlock();
+    }
+  }
+  
+  private static native String native_ceph_get_default_data_pool_name(long mountp);
 
   /**
    * Get the replication of a file.