]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: correct object size formatting
authorJason Dillaman <dillaman@redhat.com>
Fri, 20 Apr 2018 15:00:37 +0000 (11:00 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 20 Apr 2018 15:00:37 +0000 (11:00 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd/action/Info.cc
src/tools/rbd/action/Journal.cc

index 74ef953283711aa914987d2d1be3b0559dc8c691..0cd29ca67e86b92863273c7428160e1bf2df8838 100644 (file)
@@ -208,7 +208,7 @@ static int do_show_info(librados::IoCtx &io_ctx, librbd::Image& image,
               << info.num_objs << " objects"
               << std::endl
               << "\torder " << info.order
-              << " (" << si_u_t(info.obj_size) << " objects)"
+              << " (" << byte_u_t(info.obj_size) << " objects)"
               << std::endl;
     if (!imgid.empty()) {
       std::cout << "\tid: " << imgid << std::endl;
index a189d59631cf5cec6ffdabbc23e34042dc4c2a0c..7f155a87c2e08670a05653ba2f75feb12c9a90de 100644 (file)
@@ -78,7 +78,7 @@ static int do_show_journal_info(librados::Rados& rados, librados::IoCtx& io_ctx,
     std::cout << "\theader_oid: " << header_oid << std::endl;
     std::cout << "\tobject_oid_prefix: " << object_oid_prefix << std::endl;
     std::cout << "\torder: " << static_cast<int>(order) << " ("
-             << si_u_t(1ull << order) << " objects)"<< std::endl;
+             << byte_u_t(1ull << order) << " objects)"<< std::endl;
     std::cout << "\tsplay_width: " << static_cast<int>(splay_width) << std::endl;
     if (!object_pool_name.empty()) {
       std::cout << "\tobject_pool: " << object_pool_name << std::endl;