]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: shorten the generated group image snapshot name
authorJason Dillaman <dillaman@redhat.com>
Wed, 17 Jan 2018 19:03:17 +0000 (14:03 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 26 Jan 2018 15:32:40 +0000 (10:32 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Group.cc

index 4c8699ac12c2d780f26f0f91429f0c34a4faa19d..f8d7fa7cb36e27a7372b553646cbc58d3e3796b4 100644 (file)
@@ -104,10 +104,8 @@ std::string calc_ind_image_snap_name(uint64_t pool_id,
                                     std::string snap_id)
 {
   std::stringstream ind_snap_name_stream;
-  ind_snap_name_stream << std::setw(16) << std::setfill('0') << std::hex <<
-                         pool_id <<
-                         "_" << group_id <<
-                         "_" << snap_id;
+  ind_snap_name_stream << ".group." << std::hex << pool_id << "_"
+                       << group_id << "_" << snap_id;
   return ind_snap_name_stream.str();
 }