fix various spelling errors
authorShengjing Zhu <i@zhsj.me>
Sat, 10 Mar 2018 14:36:31 +0000 (22:36 +0800)
committerGaudenz Steinlin <gaudenz@debian.org>
Fri, 30 Nov 2018 15:49:02 +0000 (15:49 +0000)
Forwarded: https://github.com/ceph/ceph/pull/20831

Gbp-Pq: Name 0010-fix-various-spelling-errors.patch

26 files changed:
doc/man/8/ceph-bluestore-tool.rst
doc/man/8/ceph-detect-init.rst
qa/tasks/ceph.py
qa/tasks/mds_thrash.py
src/cls/rgw/cls_rgw.cc
src/common/legacy_config_opts.h
src/common/options.cc
src/java/native/libcephfs_jni.cc
src/journal/JournalPlayer.cc
src/librbd/image/OpenRequest.cc
src/librbd/internal.cc
src/librbd/mirror/DisableRequest.cc
src/librbd/mirror/EnableRequest.cc
src/mds/CDir.cc
src/msg/async/PosixStack.cc
src/os/bluestore/BlueStore.cc
src/os/bluestore/NVMEDevice.cc
src/os/bluestore/bluestore_tool.cc
src/pybind/rados/rados.pyx
src/pybind/rbd/rbd.pyx
src/test/objectstore/store_test.cc
src/test/osd/TestOSDMap.cc
src/tools/ceph_monstore_tool.cc
src/tools/monmaptool.cc
src/tools/rbd/action/Journal.cc
src/tools/rbd_nbd/rbd-nbd.cc

index f5e5fe2b885c180084ce2a9b2793ffab89b30e69..4bb108212ba439d84ce611a4a9bf20bd73d26ebd 100644 (file)
@@ -97,7 +97,7 @@ device.  You can dump the contents of the label with::
 
 The main device will have a lot of metadata, including information
 that used to be stored in small files in the OSD data directory.  The
-auxilliary devices (db and wal) will only have the minimum required
+auxiliary devices (db and wal) will only have the minimum required
 fields (OSD UUID, size, device type, birth time).
 
 OSD directory priming
index c409a949d4399fd214ca9c1c51275838c6db0b36..cbfcbeb2c330f3d8ee3bd74bc9b812c4e51e5867 100644 (file)
@@ -34,7 +34,7 @@ Options
 
 .. option:: --default INIT
 
-   If the init system of the host operating system is unkown, return
+   If the init system of the host operating system is unknown, return
    the value of *INIT* instead of failing with an error.
 
 .. option:: --verbose
index f61047d98cd45ce389dfac11c9f0bcfda6142aa9..deeaf3a863c055102a555000824f64f1057f8088 100644 (file)
@@ -257,7 +257,7 @@ def assign_devs(roles, devs):
 def valgrind_post(ctx, config):
     """
     After the tests run, look throught all the valgrind logs.  Exceptions are raised
-    if textual errors occured in the logs, or if valgrind exceptions were detected in
+    if textual errors occurred in the logs, or if valgrind exceptions were detected in
     the logs.
 
     :param ctx: Context
@@ -398,7 +398,7 @@ def cluster(ctx, config):
         Mkfs mon nodes.
 
     On exit:
-        If errors occured, extract a failure message and store in ctx.summary.
+        If errors occurred, extract a failure message and store in ctx.summary.
         Unmount all test files and temporary journaling files.
         Save the monitor information and archive all ceph logs.
         Cleanup the keyring setup, and remove all monitor map and data files left over.
index 75d236d105e2cd4fae143bfaa986a851809aeaa2..5349296f6ab0b234e33a13d0cc3a469d092b1e0c 100644 (file)
@@ -230,7 +230,7 @@ class MDSThrasher(Greenlet):
             self.do_thrash()
         except Exception as e:
             # Log exceptions here so we get the full backtrace (gevent loses them).
-            # Also allow succesful completion as gevent exception handling is a broken mess:
+            # Also allow successful completion as gevent exception handling is a broken mess:
             #
             # 2017-02-03T14:34:01.259 CRITICAL:root:  File "gevent.libev.corecext.pyx", line 367, in gevent.libev.corecext.loop.handle_error (src/gevent/libev/gevent.corecext.c:5051)
             #   File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/gevent/hub.py", line 558, in handle_error
index cc47818a819e2ecd07ae8e8c56926489dee36a79..c85bfdf389704dde87ddc02404404425451f7b31 100644 (file)
@@ -2513,7 +2513,7 @@ static int rgw_bi_list_op(cls_method_context_t hctx, bufferlist *in, bufferlist
   bool more;
   int ret = list_plain_entries(hctx, op.name, op.marker, max, &op_ret.entries, &more);
   if (ret < 0) {
-    CLS_LOG(0, "ERROR: %s(): list_plain_entries retured ret=%d", __func__, ret);
+    CLS_LOG(0, "ERROR: %s(): list_plain_entries returned ret=%d", __func__, ret);
     return ret;
   }
   int count = ret;
@@ -2523,7 +2523,7 @@ static int rgw_bi_list_op(cls_method_context_t hctx, bufferlist *in, bufferlist
   if (!more) {
     ret = list_instance_entries(hctx, op.name, op.marker, max - count, &op_ret.entries, &more);
     if (ret < 0) {
-      CLS_LOG(0, "ERROR: %s(): list_instance_entries retured ret=%d", __func__, ret);
+      CLS_LOG(0, "ERROR: %s(): list_instance_entries returned ret=%d", __func__, ret);
       return ret;
     }
 
@@ -2533,7 +2533,7 @@ static int rgw_bi_list_op(cls_method_context_t hctx, bufferlist *in, bufferlist
   if (!more) {
     ret = list_olh_entries(hctx, op.name, op.marker, max - count, &op_ret.entries, &more);
     if (ret < 0) {
-      CLS_LOG(0, "ERROR: %s(): list_olh_entries retured ret=%d", __func__, ret);
+      CLS_LOG(0, "ERROR: %s(): list_olh_entries returned ret=%d", __func__, ret);
       return ret;
     }
 
index 38b36a60cc88eec35879c7a0f094acdd5003b12f..a55278914b22d9262a8440af1a09b8166ddf0785 100644 (file)
@@ -1552,7 +1552,7 @@ OPTION(throttler_perf_counter, OPT_BOOL) // enable/disable throttler perf counte
 
 /* The following are tunables for torrent data */
 OPTION(rgw_torrent_flag, OPT_BOOL)    // produce torrent function flag
-OPTION(rgw_torrent_tracker, OPT_STR)    // torrent field annouce and annouce list
+OPTION(rgw_torrent_tracker, OPT_STR)    // torrent field announce and announce list
 OPTION(rgw_torrent_createby, OPT_STR)    // torrent field created by
 OPTION(rgw_torrent_comment, OPT_STR)    // torrent field comment
 OPTION(rgw_torrent_encoding, OPT_STR)    // torrent field encoding
index 1ed027c9bebd6938ef37b37eeb1f758bdcc50d00..a5f2aa85bf911fe2e3ef5a8aedab80bd7c171a8d 100644 (file)
@@ -5115,7 +5115,7 @@ std::vector<Option> get_rgw_options() {
     .set_default(0)
     .set_description("HTTP return code override for object creation")
     .set_long_description(
-        "If not zero, this is the HTTP return code that will be returned on a succesful S3 "
+        "If not zero, this is the HTTP return code that will be returned on a successful S3 "
         "object creation."),
 
     Option("rgw_resolve_cname", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
@@ -5423,7 +5423,7 @@ std::vector<Option> get_rgw_options() {
     .set_description("Length of time to aggregate metadata changes")
     .set_long_description(
         "Length of time (in milliseconds) in which the master zone aggregates all the "
-        "metadata changes that occured, before sending notifications to all the other "
+        "metadata changes that occurred, before sending notifications to all the other "
         "zones."),
 
     Option("rgw_run_sync_thread", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
@@ -5557,7 +5557,7 @@ std::vector<Option> get_rgw_options() {
 
     Option("rgw_torrent_tracker", Option::TYPE_STR, Option::LEVEL_ADVANCED)
     .set_default("")
-    .set_description("Torrent field annouce and annouce list"),
+    .set_description("Torrent field announce and announce list"),
 
     Option("rgw_torrent_createby", Option::TYPE_STR, Option::LEVEL_ADVANCED)
     .set_default("")
index 080ec3cbda4ef2688ee77605b8634d40cfda671c..600ba4fddea1d0cb5d7201d7b04b948095d8254b 100644 (file)
@@ -265,7 +265,7 @@ static void handle_error(JNIEnv *env, int rc)
 /*
  * Cast a jlong to ceph_mount_info. Each JNI function is expected to pass in
  * the class instance variable instance_ptr. Passing a parameter is faster
- * than reaching back into Java via an upcall to retreive this pointer.
+ * than reaching back into Java via an upcall to retrieve this pointer.
  */
 static inline struct ceph_mount_info *get_ceph_mount(jlong j_mntp)
 {
index 73c672b317570e712358cb4288812adc8a05d5ba..c78993249c37ab524d61bdf6c3286c43e8056b25 100644 (file)
@@ -502,7 +502,7 @@ void JournalPlayer::prune_tag(uint64_t tag_tid) {
 
   // avoid watch delay when pruning stale tags from journal objects
   if (pruned) {
-    ldout(m_cct, 15) << __func__ << ": reseting refetch state to immediate"
+    ldout(m_cct, 15) << __func__ << ": resetting refetch state to immediate"
                      << dendl;
     for (auto &player_pair : m_object_players) {
       ObjectPlayerPtr object_player(player_pair.second);
index 531a820c0364907d2a23ecf49f3c5fb25e934209..c2c5f07fa190685fd956c1e7ced27067d5e6363d 100644 (file)
@@ -181,7 +181,7 @@ Context *OpenRequest<I>::handle_v2_get_name(int *result) {
     *result = cls_client::dir_get_name_finish(&it, &m_image_ctx->name);
   }
   if (*result < 0 && *result != -ENOENT) {
-    lderr(cct) << "failed to retreive name: "
+    lderr(cct) << "failed to retrieve name: "
                << cpp_strerror(*result) << dendl;
     send_close_image(*result);
   } else if (*result == -ENOENT) {
@@ -231,7 +231,7 @@ Context *OpenRequest<I>::handle_v2_get_name_from_trash(int *result) {
       ldout(cct, 5) << "failed to retrieve name for image id "
                     << m_image_ctx->id << dendl;
     } else {
-      lderr(cct) << "failed to retreive name from trash: "
+      lderr(cct) << "failed to retrieve name from trash: "
                  << cpp_strerror(*result) << dendl;
     }
     send_close_image(*result);
@@ -273,7 +273,7 @@ Context *OpenRequest<I>::handle_v2_get_immutable_metadata(int *result) {
       &it, &m_image_ctx->object_prefix, &m_image_ctx->order);
   }
   if (*result < 0) {
-    lderr(cct) << "failed to retreive immutable metadata: "
+    lderr(cct) << "failed to retrieve immutable metadata: "
                << cpp_strerror(*result) << dendl;
     send_close_image(*result);
   } else {
index 2ee304bccb3b1d8545630f3b333bdf29153e1b16..02c3857532127ef8313e023d6c7cd2db88ed658c 100644 (file)
@@ -1353,7 +1353,7 @@ int validate_pool(IoCtx &io_ctx, CephContext *cct) {
       r = cls_client::dir_get_id(&io_ctx, RBD_DIRECTORY, image_name, &image_id);
       if (r < 0) {
         if (r != -ENOENT) {
-          ldout(cct, 2) << "error reading image id from dirctory: "
+          ldout(cct, 2) << "error reading image id from directory: "
                         << cpp_strerror(-r) << dendl;
         }
         return r;
index bcbff06a452f23c0b63bf8347aa5d83769ec8c54..98f505020ed9b167f24ada1833d16dba59d212ce 100644 (file)
@@ -72,7 +72,7 @@ Context *DisableRequest<I>::handle_get_mirror_image(int *result) {
       ldout(cct, 5) << this << " " << __func__
                     << ": mirroring is not supported by OSD" << dendl;
     } else {
-      lderr(cct) << "failed to retreive mirror image: " << cpp_strerror(*result)
+      lderr(cct) << "failed to retrieve mirror image: " << cpp_strerror(*result)
                  << dendl;
     }
     return m_on_finish;
index 3a94096eb79f8eacb828fbe3d947fb4cc94a8abf..a1d6aff7e09d22cf7f51e8fbf3b73abd1ba258f7 100644 (file)
@@ -108,7 +108,7 @@ Context *EnableRequest<I>::handle_get_mirror_image(int *result) {
   }
 
   if (*result != -ENOENT) {
-    lderr(m_cct) << "failed to retreive mirror image: " << cpp_strerror(*result)
+    lderr(m_cct) << "failed to retrieve mirror image: " << cpp_strerror(*result)
                  << dendl;
     return m_on_finish;
   }
index ae43b20f7fa59b6785a4fd193af3f007296bbc59..5808e639ce39a9fc6e670cc1cab0c2037a204fdb 100644 (file)
@@ -1734,7 +1734,7 @@ CDentry *CDir::_load_dentry(
         dn->link_remote(dn->get_linkage(), in);
         dout(12) << "_fetched  got remote link " << ino << " which we have " << *in << dendl;
       } else {
-        dout(12) << "_fetched  got remote link " << ino << " (dont' have it)" << dendl;
+        dout(12) << "_fetched  got remote link " << ino << " (don't have it)" << dendl;
       }
     }
   } 
index 5fb975ae906eaf89cb404794c2f5bddda6827535..52ad7a52242c97397195b4bb38711ae5a9d5d130 100644 (file)
@@ -74,7 +74,7 @@ class PosixConnectedSocketImpl final : public ConnectedSocketImpl {
   }
 
   // return the sent length
-  // < 0 means error occured
+  // < 0 means error occurred
   static ssize_t do_sendmsg(int fd, struct msghdr &msg, unsigned len, bool more)
   {
     size_t sent = 0;
index 47112cc70abad4933c8a5648a411416d808d09d1..2ac5a1205f0d5aa2bb8c06c2a628204e9eef4f84 100644 (file)
@@ -3649,7 +3649,7 @@ void BlueStore::_set_compression()
 
   if (comp_mode == Compressor::COMP_NONE) {
     dout(10) << __func__ << " compression mode set to 'none', "
-             << "ignore other compression setttings" << dendl;
+             << "ignore other compression settings" << dendl;
     return;
   }
 
index 72e5db9aea31dd1654391bc23313df1bd640b97f..3c6a09d65dc9f9ba104f9e1a77639ca256a61590 100644 (file)
@@ -628,7 +628,7 @@ class NVMEManager {
 
     // only support one device per osd now!
     assert(shared_driver_datas.empty());
-    // index 0 is occured by master thread
+    // index 0 is occurred by master thread
     shared_driver_datas.push_back(new SharedDriverData(shared_driver_datas.size()+1, sn_tag, c, ns));
     *driver = shared_driver_datas.back();
   }
index db55868692e4c68bb4cb8b669fd642715d89fda7..ca1b283a8ee722b4425c87690943d4f5998f7fc9 100644 (file)
@@ -214,7 +214,7 @@ int main(int argc, char **argv)
       exit(EXIT_FAILURE);
     }
     if (devs.empty()) {
-      cout << "infering bluefs devices from bluestore path" << std::endl;
+      cout << "inferring bluefs devices from bluestore path" << std::endl;
       for (auto fn : {"block", "block.wal", "block.db"}) {
        string p = path + "/" + fn;
        struct stat st;
@@ -233,7 +233,7 @@ int main(int argc, char **argv)
       cerr << "must specify out-dir to export bluefs" << std::endl;
       exit(EXIT_FAILURE);
     }
-    cout << "infering bluefs devices from bluestore path" << std::endl;
+    cout << "inferring bluefs devices from bluestore path" << std::endl;
     for (auto fn : {"block", "block.wal", "block.db"}) {
       string p = path + "/" + fn;
       struct stat st;
@@ -247,7 +247,7 @@ int main(int argc, char **argv)
       cerr << "must specify bluestore path" << std::endl;
       exit(EXIT_FAILURE);
     }
-    cout << "infering bluefs devices from bluestore path" << std::endl;
+    cout << "inferring bluefs devices from bluestore path" << std::endl;
     for (auto fn : {"block", "block.wal", "block.db"}) {
       string p = path + "/" + fn;
       struct stat st;
index e9829937a11655f18a03b257d142c6d997d04bf3..d8afb46c8790895b86831c9ffd14c547561c899b 100644 (file)
@@ -3298,7 +3298,7 @@ returned %d, but should return zero on success." % (self.name, ret))
     @requires(('write_op', WriteOp), ('oid', str_type), ('mtime', opt(int)), ('flags', opt(int)))
     def operate_write_op(self, write_op, oid, mtime=0, flags=LIBRADOS_OPERATION_NOFLAG):
         """
-        excute the real write operation
+        execute the real write operation
         :para write_op: write operation object
         :type write_op: WriteOp
         :para oid: object name
@@ -3324,7 +3324,7 @@ returned %d, but should return zero on success." % (self.name, ret))
     @requires(('write_op', WriteOp), ('oid', str_type), ('oncomplete', opt(Callable)), ('onsafe', opt(Callable)), ('mtime', opt(int)), ('flags', opt(int)))
     def operate_aio_write_op(self, write_op, oid, oncomplete=None, onsafe=None, mtime=0, flags=LIBRADOS_OPERATION_NOFLAG):
         """
-        excute the real write operation asynchronously
+        execute the real write operation asynchronously
         :para write_op: write operation object
         :type write_op: WriteOp
         :para oid: object name
@@ -3366,7 +3366,7 @@ returned %d, but should return zero on success." % (self.name, ret))
     @requires(('read_op', ReadOp), ('oid', str_type), ('flag', opt(int)))
     def operate_read_op(self, read_op, oid, flag=LIBRADOS_OPERATION_NOFLAG):
         """
-        excute the real read operation
+        execute the real read operation
         :para read_op: read operation object
         :type read_op: ReadOp
         :para oid: object name
@@ -3388,7 +3388,7 @@ returned %d, but should return zero on success." % (self.name, ret))
     @requires(('read_op', ReadOp), ('oid', str_type), ('oncomplete', opt(Callable)), ('onsafe', opt(Callable)), ('flag', opt(int)))
     def operate_aio_read_op(self, read_op, oid, oncomplete=None, onsafe=None, flag=LIBRADOS_OPERATION_NOFLAG):
         """
-        excute the real read operation
+        execute the real read operation
         :para read_op: read operation object
         :type read_op: ReadOp
         :para oid: object name
index 4738b3c197415cbdb919a7eca7bbb4747d3a04b0..cf817e1ff975b7e786a421e2925450cd5d424d9f 100644 (file)
@@ -2658,7 +2658,7 @@ written." % (self.name, ret, length))
 
     def aio_flush(self, oncomplete):
         """
-        Asyncronously wait until all writes are fully flushed if caching is
+        Asynchronously wait until all writes are fully flushed if caching is
         enabled.
         """
 
index d2152d4562087144c4b3abc4f4b944ba41a1d12f..8a20342ddefd9bb38d3d62010aa9f7eb212b9c76 100644 (file)
@@ -1724,7 +1724,7 @@ TEST_P(StoreTestSpecificAUSize, BluestoreFragmentedBlobTest) {
     t.write(cid, hoid, 0, 0x30000, bl);
     t.zero(cid, hoid, 0, 0x10000);
     t.zero(cid, hoid, 0x20000, 0x10000);
-    cerr << "Rewrite an object and create two holes at the begining and the end" << std::endl;
+    cerr << "Rewrite an object and create two holes at the beginning and the end" << std::endl;
     r = apply_transaction(store, &osr, std::move(t));
     ASSERT_EQ(r, 0);
 
index 6031464dd52c67a14622b3a65737f2704addfa2e..8a9c9c6ab2b5585883d3af37b32e47607d8bf4cb 100644 (file)
@@ -207,7 +207,7 @@ TEST_F(OSDMapTest, Features) {
   ASSERT_TRUE(features & CEPH_FEATURE_CRUSH_TUNABLES2);
   ASSERT_TRUE(features & CEPH_FEATURE_CRUSH_TUNABLES3);
   ASSERT_TRUE(features & CEPH_FEATURE_CRUSH_V2);
-  ASSERT_FALSE(features & CEPH_FEATURE_OSD_ERASURE_CODES);  // dont' need this
+  ASSERT_FALSE(features & CEPH_FEATURE_OSD_ERASURE_CODES);  // don't need this
   ASSERT_TRUE(features & CEPH_FEATURE_OSDHASHPSPOOL);
   ASSERT_TRUE(features & CEPH_FEATURE_OSD_PRIMARY_AFFINITY);
 
index 0ad652d61cbed2f7879b3da7255a099937c3cc8f..4b4c21775a0ccf1a7d13a685ec847d47badc83a5 100644 (file)
@@ -878,7 +878,7 @@ int main(int argc, char **argv) {
       ("version,v", po::value<unsigned>(&v),
        "map version to obtain")
       ("readable,r", po::value<bool>(&readable)->default_value(false),
-       "print the map infomation in human readable format")
+       "print the map information in human readable format")
       ;
     // this is going to be a positional argument; we don't want to show
     // it as an option during --help, but we do want to have it captured
index 0972faf185a9e9dbf9433f4246e7e17283289ee5..6867a9588d6ae9ac31c3a86ee512d42462c64732 100644 (file)
@@ -158,7 +158,7 @@ bool handle_features(list<feature_op_t>& lst, MonMap &m)
         target.unset_feature(f.feature);
       }
     } else {
-      cerr << "unknow feature operation type '" << f.op << "'" << std::endl; 
+      cerr << "unknown feature operation type '" << f.op << "'" << std::endl;
     }
   }
   return modified;
index 20868721e08b16a79d5056f0835cb00c276cc65e..55a96dded1979941cd2e08def1a495b081f8e006 100644 (file)
@@ -674,7 +674,7 @@ public:
       return false;
     }
     if (r != entry_size) {
-      std::cerr << "rbd: error reading from stdin: trucated"
+      std::cerr << "rbd: error reading from stdin: truncated"
                << std::endl;
       r = -EINVAL;
       return false;
index aefdbd36e0620a6367ea106c60f101911ed9503e..d7d8e73f062c755bfa2e179a3e5f2cff07765eb4 100644 (file)
@@ -437,7 +437,7 @@ std::ostream &operator<<(std::ostream &os, const NBDServer::IOContext &ctx) {
     os << " TRIM ";
     break;
   default:
-    os << " UNKNOW(" << ctx.command << ") ";
+    os << " UNKNOWN(" << ctx.command << ") ";
     break;
   }