]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_objectstore_tool: Rename generated binary to ceph-objectstore-tool 3207/head
authorDavid Zafman <dzafman@redhat.com>
Wed, 17 Dec 2014 01:02:56 +0000 (17:02 -0800)
committerDavid Zafman <dzafman@redhat.com>
Thu, 18 Dec 2014 01:09:09 +0000 (17:09 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
ceph.spec.in
debian/ceph-test.install
src/.gitignore
src/test/ceph-helpers.sh
src/test/ceph_objectstore_tool.py
src/tools/Makefile.am
src/tools/ceph_objectstore_tool.cc

index c5a68c2af205fb6272b247effe0e68386d9edf1e..c08a72b6b53b3e6792de202aadcc6312d6b83917 100644 (file)
@@ -734,7 +734,7 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
 %{_bindir}/ceph_smalliobenchdumb
 %{_bindir}/ceph_smalliobenchfs
 %{_bindir}/ceph_smalliobenchrbd
-%{_bindir}/ceph_objectstore_tool
+%{_bindir}/ceph-objectstore-tool
 %{_bindir}/ceph_streamtest
 %{_bindir}/ceph_test_*
 %{_bindir}/ceph_tpbench
index 3dfeeb15ecd422a0123788a31adbe341744162a2..f2fcd603d87dc95aa14bd545ac4bc5fc849f47c9 100644 (file)
@@ -1,6 +1,6 @@
 usr/bin/ceph-coverage
 usr/bin/ceph_bench_log
-usr/bin/ceph_objectstore_tool
+usr/bin/ceph-objectstore-tool
 usr/bin/ceph_kvstorebench
 usr/bin/ceph_multi_stress_watch
 usr/bin/ceph_erasure_code
index 66b1f702a60e91fe81967f4501655ded55491091..6e76998b46e66175bb6110fbd9f70b83c1e2e52d 100644 (file)
@@ -24,7 +24,7 @@ Makefile
 /ceph-syn
 /ceph.conf
 /ceph_bench_log
-/ceph_objectstore_tool
+/ceph-objectstore-tool
 /ceph_mon_store_converter
 /ceph_multi_stress_watch
 /ceph_erasure_code
index fc0f7cf4f8242da8478e6022d39cf5a5dfd2682c..00e2d82abed3bb2c3e7a7d57b8f4afc7dd11f77e 100755 (executable)
@@ -647,17 +647,17 @@ function test_get_not_primary() {
 #######################################################################
 
 ##
-# Run ceph_objectstore_tool against the OSD **id** using the data path
+# Run ceph-objectstore-tool against the OSD **id** using the data path
 # **dir**. The OSD is killed with TERM prior to running
-# ceph_objectstore_tool because access to the data path is
+# ceph-objectstore-tool because access to the data path is
 # exclusive. The OSD is restarted after the command completes. The
 # objectstore_tool returns after all PG are active+clean again.
 #
 # @param dir the data path of the OSD
 # @param id the OSD id
-# @param ... arguments to ceph_objectstore_tool
-# @param STDIN the input of ceph_objectstore_tool
-# @param STDOUT the output of ceph_objectstore_tool
+# @param ... arguments to ceph-objectstore-tool
+# @param STDIN the input of ceph-objectstore-tool
+# @param STDOUT the output of ceph-objectstore-tool
 # @return 0 on success, 1 on error
 #
 function objectstore_tool() {
@@ -668,7 +668,7 @@ function objectstore_tool() {
     local osd_data=$dir/$id
 
     kill_daemons $dir TERM osd.$id >&2 < /dev/null || return 1
-    ceph_objectstore_tool \
+    ceph-objectstore-tool \
         --data-path $osd_data \
         --journal-path $osd_data/journal \
         "$@" || return 1
index 92c5ea782f653cb668c46415fccc5a5f8adc5f99..e1870e61079c104a524821f8d0eaef402b7ba3c3 100755 (executable)
@@ -224,7 +224,7 @@ def main(argv):
     pid = os.getpid()
     TESTDIR = "/tmp/test.{pid}".format(pid=pid)
     DATADIR = "/tmp/data.{pid}".format(pid=pid)
-    CFSD_PREFIX = "./ceph_objectstore_tool --data-path " + OSDDIR + "/{osd} --journal-path " + OSDDIR + "/{osd}.journal "
+    CFSD_PREFIX = "./ceph-objectstore-tool --data-path " + OSDDIR + "/{osd} --journal-path " + OSDDIR + "/{osd}.journal "
     PROFNAME = "testecprofile"
 
     os.environ['CEPH_CONF'] = CEPH_CONF
@@ -449,11 +449,11 @@ def main(argv):
     ERRORS += test_failure(cmd, "Must provide --type (filestore, memstore, keyvaluestore-dev)")
 
     # Don't specify a data-path
-    cmd = "./ceph_objectstore_tool --journal-path {dir}/{osd}.journal --type memstore --op list --pgid {pg}".format(dir=OSDDIR, osd=ONEOSD, pg=ONEPG)
+    cmd = "./ceph-objectstore-tool --journal-path {dir}/{osd}.journal --type memstore --op list --pgid {pg}".format(dir=OSDDIR, osd=ONEOSD, pg=ONEPG)
     ERRORS += test_failure(cmd, "Must provide --data-path")
 
     # Don't specify a journal-path for filestore
-    cmd = "./ceph_objectstore_tool --type filestore --data-path {dir}/{osd} --op list --pgid {pg}".format(dir=OSDDIR, osd=ONEOSD, pg=ONEPG)
+    cmd = "./ceph-objectstore-tool --type filestore --data-path {dir}/{osd} --op list --pgid {pg}".format(dir=OSDDIR, osd=ONEOSD, pg=ONEPG)
     ERRORS += test_failure(cmd, "Must provide --journal-path")
 
     # Test --op list and generate json for all objects
@@ -875,7 +875,7 @@ def main(argv):
                 if string.find(pg, "{id}.".format(id=REPID)) != 0:
                     continue
                 file = os.path.join(dir, pg)
-                cmd = "./ceph_objectstore_tool import-rados {pool} {file}".format(pool=NEWPOOL, file=file)
+                cmd = "./ceph-objectstore-tool import-rados {pool} {file}".format(pool=NEWPOOL, file=file)
                 logging.debug(cmd)
                 ret = call(cmd, shell=True, stdout=nullfd)
                 if ret != 0:
index ceecc944da3809c5a94a0981d79cb3fd6677da27..d92ed558536334f3f589cebb7b6dfb684943946b 100644 (file)
@@ -16,7 +16,7 @@ ceph_objectstore_tool_LDADD = $(LIBOSD) $(LIBOS) $(CEPH_GLOBAL) $(BOOST_PROGRAM_
 if LINUX
 ceph_objectstore_tool_LDADD += -ldl
 endif # LINUX
-bin_PROGRAMS += ceph_objectstore_tool
+bin_PROGRAMS += ceph-objectstore-tool
 
 monmaptool_SOURCES = tools/monmaptool.cc
 monmaptool_LDADD = $(CEPH_GLOBAL) $(LIBCOMMON)
index 1d430e8f9f7a79f09a0f2efecc03cfb6b7faa58b..9b800a578603399cf20796c21c58a6d82c26ac55 100644 (file)
@@ -1559,7 +1559,7 @@ int do_import(ObjectStore *store, OSDSuperblock& sb)
       cerr << std::endl;
       cerr << "OSD requires sharding to be enabled" << std::endl;
       cerr << std::endl;
-      cerr << "If you wish to import, first do 'ceph_objectstore_tool...--op set-allow-sharded-objects'" << std::endl;
+      cerr << "If you wish to import, first do 'ceph-objectstore-tool...--op set-allow-sharded-objects'" << std::endl;
     }
     return 1;
   }
@@ -2004,16 +2004,16 @@ void usage(po::options_description &desc)
     cerr << std::endl;
     cerr << "Positional syntax:" << std::endl;
     cerr << std::endl;
-    cerr << "ceph_objectstore_tool ... <object> (get|set)-bytes [file]" << std::endl;
-    cerr << "ceph_objectstore_tool ... <object> set-(attr|omap) <key> [file]" << std::endl;
-    cerr << "ceph_objectstore_tool ... <object> (get|rm)-(attr|omap) <key>" << std::endl;
-    cerr << "ceph_objectstore_tool ... <object> get-omaphdr" << std::endl;
-    cerr << "ceph_objectstore_tool ... <object> set-omaphdr [file]" << std::endl;
-    cerr << "ceph_objectstore_tool ... <object> list-attrs" << std::endl;
-    cerr << "ceph_objectstore_tool ... <object> list-omap" << std::endl;
-    cerr << "ceph_objectstore_tool ... <object> remove" << std::endl;
+    cerr << "ceph-objectstore-tool ... <object> (get|set)-bytes [file]" << std::endl;
+    cerr << "ceph-objectstore-tool ... <object> set-(attr|omap) <key> [file]" << std::endl;
+    cerr << "ceph-objectstore-tool ... <object> (get|rm)-(attr|omap) <key>" << std::endl;
+    cerr << "ceph-objectstore-tool ... <object> get-omaphdr" << std::endl;
+    cerr << "ceph-objectstore-tool ... <object> set-omaphdr [file]" << std::endl;
+    cerr << "ceph-objectstore-tool ... <object> list-attrs" << std::endl;
+    cerr << "ceph-objectstore-tool ... <object> list-omap" << std::endl;
+    cerr << "ceph-objectstore-tool ... <object> remove" << std::endl;
     cerr << std::endl;
-    cerr << "ceph_objectstore_tool import-rados <pool> [file]" << std::endl;
+    cerr << "ceph-objectstore-tool import-rados <pool> [file]" << std::endl;
     cerr << std::endl;
     cerr << "<object> can be a JSON object description as displayed" << std::endl;
     cerr << "by --op list." << std::endl;
@@ -2098,7 +2098,7 @@ int main(int argc, char **argv)
   // Handle completely different operation "import-rados"
   if (object == "import-rados") {
     if (vm.count("objcmd") == 0) {
-      cerr << "ceph_objectstore_tool import-rados <pool> [file]" << std::endl;
+      cerr << "ceph-objectstore-tool import-rados <pool> [file]" << std::endl;
       exit(1);
     }