]> git.proxmox.com Git - ceph.git/blob - ceph/src/tools/rbd_mirror/image_sync/Utils.cc
import 15.2.0 Octopus source
[ceph.git] / ceph / src / tools / rbd_mirror / image_sync / Utils.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 "Utils.h"
5
6 namespace rbd {
7 namespace mirror {
8 namespace image_sync {
9 namespace util {
10
11 namespace {
12
13 static const std::string SNAP_NAME_PREFIX(".rbd-mirror");
14
15 } // anonymous namespace
16
17 std::string get_snapshot_name_prefix(const std::string& local_mirror_uuid) {
18 return SNAP_NAME_PREFIX + "." + local_mirror_uuid + ".";
19 }
20
21 } // namespace util
22 } // namespace image_sync
23 } // namespace mirror
24 } // namespace rbd