From: myoungwon oh Date: Mon, 8 Apr 2019 09:51:02 +0000 (+0900) Subject: src/tools: fix dedup tool's name X-Git-Tag: v15.1.0~2835^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d72cc5a0ee95153f2d847a3322afca5d9c4bd661;p=ceph.git src/tools: fix dedup tool's name Signed-off-by: Myoungwon Oh --- diff --git a/alpine/APKBUILD.in b/alpine/APKBUILD.in index 96037883f55..029be6cfcc8 100644 --- a/alpine/APKBUILD.in +++ b/alpine/APKBUILD.in @@ -436,7 +436,7 @@ ceph_test() { ceph-osdomap-tool \ ceph-kvstore-tool \ ceph-debugpack \ - cephdeduptool + ceph-dedup-tool _pkg $_libdir ceph/ceph-monstore-update-crush.sh } diff --git a/ceph.spec.in b/ceph.spec.in index a12ceade0f7..e6fce9b8921 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -2041,7 +2041,7 @@ fi %{_bindir}/ceph_test_* %{_bindir}/ceph-coverage %{_bindir}/ceph-debugpack -%{_bindir}/cephdeduptool +%{_bindir}/ceph-dedup-tool %{_mandir}/man8/ceph-debugpack.8* %dir %{_libdir}/ceph %{_libdir}/ceph/ceph-monstore-update-crush.sh diff --git a/debian/ceph-test.install b/debian/ceph-test.install index 200269fa6d5..dae063ab6c4 100644 --- a/debian/ceph-test.install +++ b/debian/ceph-test.install @@ -17,6 +17,6 @@ usr/bin/ceph_rgw_multiparser usr/bin/ceph_scratchtool usr/bin/ceph_scratchtoolpp usr/bin/ceph_test_* -usr/bin/cephdeduptool +usr/bin/ceph-dedup-tool usr/lib/ceph/ceph-monstore-update-crush.sh usr/share/java/libcephfs-test.jar diff --git a/qa/workunits/rados/test_dedup_tool.sh b/qa/workunits/rados/test_dedup_tool.sh index 2caf1c26ca2..8535ad241b3 100755 --- a/qa/workunits/rados/test_dedup_tool.sh +++ b/qa/workunits/rados/test_dedup_tool.sh @@ -33,12 +33,12 @@ if [ -n "$CEPH_BIN" ] ; then # CMake env RADOS_TOOL="$CEPH_BIN/rados" CEPH_TOOL="$CEPH_BIN/ceph" - DEDUP_TOOL="$CEPH_BIN/cephdeduptool" + DEDUP_TOOL="$CEPH_BIN/ceph-dedup-tool" else # executables should be installed by the QA env RADOS_TOOL=$(which rados) CEPH_TOOL=$(which ceph) - DEDUP_TOOL=$(which cephdeduptool) + DEDUP_TOOL=$(which ceph-dedup-tool) fi POOL=dedup_pool diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index d31f3d24084..a524df85eb2 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -101,10 +101,10 @@ target_link_libraries(ceph-authtool global ${EXTRALIBS} ${CRYPTO_LIBS}) install(TARGETS ceph-authtool DESTINATION bin) if(WITH_TESTS) -set(cephdeduptool_srcs ceph_dedup_tool.cc) -add_executable(cephdeduptool ${cephdeduptool_srcs}) -target_link_libraries(cephdeduptool librados global cls_cas_client) -install(TARGETS cephdeduptool DESTINATION bin) +set(ceph_dedup_tool_srcs ceph_dedup_tool.cc) +add_executable(ceph-dedup-tool ${ceph_dedup_tool_srcs}) +target_link_libraries(ceph-dedup-tool librados global cls_cas_client) +install(TARGETS ceph-dedup-tool DESTINATION bin) endif(WITH_TESTS) if(WITH_CEPHFS) diff --git a/src/tools/ceph_dedup_tool.cc b/src/tools/ceph_dedup_tool.cc index 07f68b3c375..f3a53ef5ca7 100644 --- a/src/tools/ceph_dedup_tool.cc +++ b/src/tools/ceph_dedup_tool.cc @@ -288,9 +288,10 @@ void EstimateDedupRatio::print_status(Formatter *f, ostream &out) f->dump_string("PID", stringify(get_pid())); for (auto p : local_chunk_statistics) { f->open_object_section("fingerprint object"); - f->dump_string("fingperint", p.first); + f->dump_string("fingerprint", p.first); f->dump_string("count", stringify(p.second.first)); f->dump_string("chunk_size", stringify(p.second.second)); + f->close_section(); } f->close_section(); f->open_object_section("Status");