fix various spelling errors
authorShengjing Zhu <i@zhsj.me>
Sat, 10 Mar 2018 14:36:31 +0000 (22:36 +0800)
committerBastien Roucariès <rouca@debian.org>
Sat, 21 Oct 2023 16:42:26 +0000 (17:42 +0100)
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 fba47d4601a10136726d54e186dc834c9db2489f..935f58b2faa9c576a6aaf2ad9cc81fa9d0a0215b 100644 (file)
@@ -2532,7 +2532,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;
@@ -2542,7 +2542,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;
     }
 
@@ -2552,7 +2552,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 828697758124093a1071e6209fb33bff8ee87a5a..2f5caa906c39fb01c3ad01aad583515734b5bcc3 100644 (file)
@@ -1558,7 +1558,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 231a7651b17f9377acd368a9192c57c2b6eef553..6c1826710433e287d9fe95227532d5a0238b3a3a 100644 (file)
@@ -5186,7 +5186,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)
@@ -5494,7 +5494,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)
@@ -5639,7 +5639,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 bd77bb439f849391f5e24939b5ddb45c0be057bf..7436b96260797170f709c791303c7a2643f7a900 100644 (file)
@@ -1354,7 +1354,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 3cfe73a2592768a95c6889faaf19a52c1aac59b0..8359e379d87129b1c966fcf86eddc145a68d8cb5 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 c3ffbc796360badb71a7b7d0fecf9f7240065970..7fa8d803a9e609a8ff34ba684cdf0b4dcd087f3c 100644 (file)
@@ -1740,7 +1740,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 91693050950adccb79299cbea293b9f54c68486e..21b999b0d25ea7d27d9634d3b0d3a2d14cd63d31 100644 (file)
@@ -75,7 +75,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 6d601aaac83ab33de5ab040b49c1724e326c1457..5902c6bd9465d2f984e80ff733add64a5afd81ce 100644 (file)
@@ -3856,7 +3856,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 a5fc53ab87eb31da2df3617817866a29d64c7221..dd96c685d1a234016a64f0ca71a8371561afd528 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 746ba8222ba90045fd642638af1771eff2352a09..5efdcec7e4fc16906d8c2d739d8d0bc1ed0c7e08 100644 (file)
@@ -236,7 +236,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;
@@ -255,7 +255,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;
@@ -269,7 +269,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 431f5a9f84e44ac24afa24261c1f606e809b09b8..ea7d66144fc4ab062a6dc3522dc0fdc413a4fbfc 100644 (file)
@@ -3312,7 +3312,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
@@ -3338,7 +3338,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
@@ -3380,7 +3380,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
@@ -3402,7 +3402,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 0013ae27b780516f01e09d18f9c7b4883a3028cf..e754218efa37d1011b5ba030b8ed07875164537f 100644 (file)
@@ -2659,7 +2659,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 326c9785d0354a79423e36fa3a0071e8db14b048..a30b4f904959d278407534dac07489c46c4ae9bf 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 251ae4d994064301fb5ca9b89c6451990c563350..0d650f937a7f33b6b09b9bc1b3f15b302a226d49 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;
   }