]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: perf section name: use hyphen to separate components
authorMykola Golub <mgolub@mirantis.com>
Tue, 10 Nov 2015 06:32:17 +0000 (08:32 +0200)
committerMykola Golub <mgolub@mirantis.com>
Wed, 11 Nov 2015 07:19:47 +0000 (09:19 +0200)
"/" and "@" characters make invalid xml format output.

Fixes: #13719
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/librbd/ImageCtx.cc

index 68a03faffbd45f2822ea8438ee3819ed45f826ee..b14f335852c0ff430c6a88b64afe51bcf586719f 100644 (file)
@@ -183,9 +183,9 @@ public:
     }
 
     string pname = string("librbd-") + id + string("-") +
-      data_ctx.get_pool_name() + string("/") + name;
+      data_ctx.get_pool_name() + string("-") + name;
     if (!snap_name.empty()) {
-      pname += "@";
+      pname += "-";
       pname += snap_name;
     }