]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/workunits/rbd/rbd_mirror_helpers.sh
update sources to v12.2.0
[ceph.git] / ceph / qa / workunits / rbd / rbd_mirror_helpers.sh
index f825bec8549db559417cb7bd5b8ba2b22aeb187e..23216711e6ac3c86f49e082c74b2a88e133fbffe 100755 (executable)
@@ -867,6 +867,16 @@ request_resync_image()
     rbd --cluster=${cluster} -p ${pool} mirror image resync ${image}
 }
 
+get_image_data_pool()
+{
+    local cluster=$1
+    local pool=$2
+    local image=$3
+
+    rbd --cluster ${cluster} -p ${pool} info ${image} |
+        awk '$1 == "data_pool:" {print $2}'
+}
+
 #
 # Main
 #