]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/workunits/rbd/rbd_mirror_helpers.sh
update ceph source to reef 18.2.1
[ceph.git] / ceph / qa / workunits / rbd / rbd_mirror_helpers.sh
index ca715d854c17669b09c463fa83a0580ec300e04b..f4961b925e6f3fccb02cf829d33f6b0f8ed903ed 100755 (executable)
@@ -1169,6 +1169,16 @@ wait_for_snap_removed_from_trash()
     return 1
 }
 
+count_mirror_snaps()
+{
+    local cluster=$1
+    local pool=$2
+    local image=$3
+
+    rbd --cluster ${cluster} snap ls ${pool}/${image} --all |
+        grep -c -F " mirror ("
+}
+
 write_image()
 {
     local cluster=$1