]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/io/Types.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / librbd / io / Types.cc
index 223c7728320fee60f433c1576ec3bebe6355170a..19fcc6b8905d88b57e553d0f96b4d7213e9262f6 100644 (file)
@@ -34,5 +34,16 @@ std::ostream& operator<<(std::ostream& os, const SparseExtent& se) {
   return os;
 }
 
+std::ostream& operator<<(std::ostream& os, ImageArea area) {
+  switch (area) {
+  case ImageArea::DATA:
+    return os << "data";
+  case ImageArea::CRYPTO_HEADER:
+    return os << "crypto_header";
+  default:
+    ceph_abort();
+  }
+}
+
 } // namespace io
 } // namespace librbd