Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / tools / rbd_mirror / types.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #include "types.h"
5
6 namespace rbd {
7 namespace mirror {
8
9 std::ostream &operator<<(std::ostream &os, const ImageId &image_id) {
10   return os << "global id=" << image_id.global_id << ", "
11             << "id=" << image_id.id;
12 }
13
14 std::ostream& operator<<(std::ostream& lhs, const peer_t &peer) {
15   return lhs << "uuid: " << peer.uuid
16              << " cluster: " << peer.cluster_name
17              << " client: " << peer.client_name;
18 }
19
20 } // namespace mirror
21 } // namespace rbd