]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
misc: fix various spelling errors 20831/head
authorShengjing Zhu <i@zhsj.me>
Sat, 10 Mar 2018 14:36:31 +0000 (22:36 +0800)
committerShengjing Zhu <zhsj@umcloud.com>
Sat, 10 Mar 2018 15:39:20 +0000 (23:39 +0800)
Signed-off-by: Shengjing Zhu <i@zhsj.me>
24 files changed:
doc/man/8/ceph-bluestore-tool.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/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/tools/ceph_monstore_tool.cc
src/tools/monmaptool.cc
src/tools/rbd/action/Journal.cc
src/tools/rbd/action/Kernel.cc
src/tools/rbd_nbd/rbd-nbd.cc

index 9e732a7abefdde5ee49e1e7e24889f108c0622cb..6ac9f97417c7802cf8f701df54bdb67eb3e04a70 100644 (file)
@@ -96,7 +96,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 bcd39487115587aac495b6acd40f7d77723b937a..816191c5a78835fffaebe1624f20c2bc3b510b97 100644 (file)
@@ -258,7 +258,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
@@ -399,7 +399,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 d55576f008ec715254f85dd76301e1f0f4c3d3ef..4556bcc99a8bbdd5cf4de901639c20d1a5cc4999 100644 (file)
@@ -2500,7 +2500,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;
@@ -2510,7 +2510,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;
     }
 
@@ -2520,7 +2520,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 b1d245e427155af7d6b0eb3e8a57b4f057d10de0..8b18c05bb7a4582428eaacbfc428717657297179 100644 (file)
@@ -1509,7 +1509,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 25f70032848ddcc788284dd54b377effe4974089..aced1b52d8fe48448300e5f328fe121da7798906 100644 (file)
@@ -5570,7 +5570,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)
@@ -5864,7 +5864,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)
@@ -6014,7 +6014,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 79a2d778dde948f57101b59582a2ec431f4ee649..74ef8dcdd8635d1120c2459f74cf4ca4ab2282a3 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 c038b8dac64c6ce6a16e7da608cfe36835389f16..511802180804448f90269c30e219c46f23222176 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 009541e2f243558fedb34a27baf7e73c903c5bea..b5e7415a4c45521ad6aaa65bf2b6edddbdd77114 100644 (file)
@@ -175,7 +175,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) {
@@ -224,7 +224,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);
@@ -266,7 +266,7 @@ Context *OpenRequest<I>::handle_v2_get_initial_metadata(int *result) {
       &it, &m_image_ctx->object_prefix, &m_image_ctx->order, &m_image_ctx->features);
   }
   if (*result < 0) {
-    lderr(cct) << "failed to retreive initial metadata: "
+    lderr(cct) << "failed to retrieve initial metadata: "
                << cpp_strerror(*result) << dendl;
     send_close_image(*result);
     return nullptr;
index 2d9bb371eb58a48676d977f2c9942110deffb4f7..7968284792a6b530f75270c8370ff26db6cf9d73 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 a3ab8ad5c19605f3df15ce0565d369345e93a258..431a2085e7a7b9a60e96e58ff115ec69ce371dd6 100644 (file)
@@ -73,7 +73,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 d3aba6af290bd2a494011560c8fc7c0bde56999e..e261e4ecc03f9a7adf7e2f49ef131034a58a23fb 100644 (file)
@@ -1739,7 +1739,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 e966621c7adc4ac0da479fdbf8a3e8fe2ed9c78c..9a2ceab6b85e8c7b694c25c0bd98eda8d6cee8bd 100644 (file)
@@ -73,7 +73,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 c8f90f67f9ef413aa2949457149c8a7b14bdd94a..0863cbc7fb752183d8fc6f48564815e969117747 100644 (file)
@@ -3788,7 +3788,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 3289a4e85406b849b2396b7973ad6561b5fa95ba..0852d82466a20bc050fe6432bc293868fcf90dd2 100644 (file)
@@ -509,7 +509,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 f8fbaeb0af799e27f6fd90603fe66b7cf60fd108..94f3fd2e7d42984b2e2570d123d25646ab93e4f3 100644 (file)
@@ -151,9 +151,9 @@ BlueFS *open_bluefs(
   return fs;
 }
 
-void infering_bluefs_devices(vector<string>& devs, std::string& path)
+void inferring_bluefs_devices(vector<string>& devs, std::string& path)
 {
-  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;
@@ -254,7 +254,7 @@ int main(int argc, char **argv)
       exit(EXIT_FAILURE);
     }
     if (devs.empty())
-      infering_bluefs_devices(devs, path);
+      inferring_bluefs_devices(devs, path);
   }
   if (action == "bluefs-export" || action == "bluefs-log-dump") {
     if (path.empty()) {
@@ -265,14 +265,14 @@ int main(int argc, char **argv)
       cerr << "must specify out-dir to export bluefs" << std::endl;
       exit(EXIT_FAILURE);
     }
-    infering_bluefs_devices(devs, path);
+    inferring_bluefs_devices(devs, path);
   }
   if (action == "bluefs-bdev-sizes" || action == "bluefs-bdev-expand") {
     if (path.empty()) {
       cerr << "must specify bluestore path" << std::endl;
       exit(EXIT_FAILURE);
     }
-    infering_bluefs_devices(devs, path);
+    inferring_bluefs_devices(devs, path);
   }
 
   vector<const char*> args;
index 8870c789eb68dd4ef38c4ad296edf312c53926c9..017b2e027ff24e742e4e928bfc35ce14ba978017 100644 (file)
@@ -3260,7 +3260,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
@@ -3286,7 +3286,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
@@ -3328,7 +3328,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
@@ -3350,7 +3350,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 65c2e328feb267995002a1e10d5d3d3075b2eb33..e2ba0f7978c9a50f831a3522fbd41bfe79aff663 100644 (file)
@@ -3157,7 +3157,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 432c3c8c5125ea5a21fcc615a260135b5914a97f..2a76a84c6a66c266c0df3a3e72cdb99cb734dbc2 100644 (file)
@@ -1762,7 +1762,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 = queue_transaction(store, ch, std::move(t));
     ASSERT_EQ(r, 0);
 
index ec573fab26a8e36e0fbb92c85e7784bcec01058c..961490ba7deda9558ca4a1bbe13597998e67e316 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 067e2fa5926ef2e10d47985b761c6e0dbeccbe28..85012201364eb9132ef33cc762eafba96c07f159 100644 (file)
@@ -157,7 +157,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 e216a0a13ae8340035db012c0e85ab1538af66c5..734831d2286d7a0eb5ec12ef5459a57048f19fa8 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 b134a674187fc264b836a2bdae411719d1bb0019..cbcff9c76a3406eb1f58aacb242577dcc048da4d 100644 (file)
@@ -326,7 +326,7 @@ static int do_kernel_map(const char *poolname, const char *imgname,
 
   r = krbd_is_mapped(krbd, poolname, imgname, snapname, &devnode);
   if (r < 0) {
-    std::cerr << "rbd: warning: can't get image map infomation: "
+    std::cerr << "rbd: warning: can't get image map information: "
              << cpp_strerror(r) << std::endl;
   } else if (r > 0) {
     std::cerr << "rbd: warning: image already mapped as " << devnode
index 1ef12b481d00de53836dc825951f7cc6e197ce95..c4b6fda1255aaf29bfe8614bbbd15c24908f633a 100644 (file)
@@ -448,7 +448,7 @@ std::ostream &operator<<(std::ostream &os, const NBDServer::IOContext &ctx) {
     os << " TRIM ";
     break;
   default:
-    os << " UNKNOW(" << ctx.command << ") ";
+    os << " UNKNOWN(" << ctx.command << ") ";
     break;
   }