From 2c9caef1fff0bb45d726139e180dfddcbf508439 Mon Sep 17 00:00:00 2001 From: Shengjing Zhu Date: Sat, 10 Mar 2018 22:36:31 +0800 Subject: [PATCH] fix various spelling errors Forwarded: https://github.com/ceph/ceph/pull/20831 Gbp-Pq: Name 0010-fix-various-spelling-errors.patch --- doc/man/8/ceph-bluestore-tool.rst | 2 +- doc/man/8/ceph-detect-init.rst | 2 +- qa/tasks/ceph.py | 4 ++-- qa/tasks/mds_thrash.py | 2 +- src/cls/rgw/cls_rgw.cc | 6 +++--- src/common/legacy_config_opts.h | 2 +- src/common/options.cc | 6 +++--- src/java/native/libcephfs_jni.cc | 2 +- src/journal/JournalPlayer.cc | 2 +- src/librbd/image/OpenRequest.cc | 6 +++--- src/librbd/internal.cc | 2 +- src/librbd/mirror/DisableRequest.cc | 2 +- src/librbd/mirror/EnableRequest.cc | 2 +- src/mds/CDir.cc | 2 +- src/msg/async/PosixStack.cc | 2 +- src/os/bluestore/BlueStore.cc | 2 +- src/os/bluestore/NVMEDevice.cc | 2 +- src/os/bluestore/bluestore_tool.cc | 6 +++--- src/pybind/rados/rados.pyx | 8 ++++---- src/pybind/rbd/rbd.pyx | 2 +- src/test/objectstore/store_test.cc | 2 +- src/test/osd/TestOSDMap.cc | 2 +- src/tools/ceph_monstore_tool.cc | 2 +- src/tools/monmaptool.cc | 2 +- src/tools/rbd/action/Journal.cc | 2 +- src/tools/rbd_nbd/rbd-nbd.cc | 2 +- 26 files changed, 38 insertions(+), 38 deletions(-) diff --git a/doc/man/8/ceph-bluestore-tool.rst b/doc/man/8/ceph-bluestore-tool.rst index f5e5fe2b8..4bb108212 100644 --- a/doc/man/8/ceph-bluestore-tool.rst +++ b/doc/man/8/ceph-bluestore-tool.rst @@ -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 diff --git a/doc/man/8/ceph-detect-init.rst b/doc/man/8/ceph-detect-init.rst index c409a949d..cbfcbeb2c 100644 --- a/doc/man/8/ceph-detect-init.rst +++ b/doc/man/8/ceph-detect-init.rst @@ -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 diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index f61047d98..deeaf3a86 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -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. diff --git a/qa/tasks/mds_thrash.py b/qa/tasks/mds_thrash.py index 75d236d10..5349296f6 100644 --- a/qa/tasks/mds_thrash.py +++ b/qa/tasks/mds_thrash.py @@ -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 diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index 13b3e92dc..bc335d506 100644 --- a/src/cls/rgw/cls_rgw.cc +++ b/src/cls/rgw/cls_rgw.cc @@ -2530,7 +2530,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; @@ -2540,7 +2540,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; } @@ -2550,7 +2550,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; } diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index a51870ef6..c8ffbf4c0 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1554,7 +1554,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 diff --git a/src/common/options.cc b/src/common/options.cc index ff3bb1a1b..b5c2f39a1 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5162,7 +5162,7 @@ std::vector