]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: fix typos
authorKefu Chai <kchai@redhat.com>
Tue, 18 Sep 2018 03:23:48 +0000 (11:23 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Sep 2018 04:43:33 +0000 (12:43 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
58 files changed:
src/common/AsyncReserver.h
src/common/DecayCounter.h
src/common/OpQueue.h
src/common/Throttle.h
src/common/Timer.h
src/common/WeightedPriorityQueue.h
src/common/admin_socket.h
src/common/cohort_lru.h
src/common/common_init.h
src/common/escape.h
src/common/legacy_config_opts.h
src/common/perf_counters.h
src/common/sctp_crc32.c
src/common/xattr.c
src/crimson/thread/ThreadPool.h
src/crush/CrushWrapper.h
src/crush/builder.c
src/crush/builder.h
src/erasure-code/isa/ErasureCodeIsaTableCache.cc
src/erasure-code/jerasure/ErasureCodeJerasure.cc
src/include/ceph_features.h
src/include/ceph_fs.h
src/include/cephfs/ceph_statx.h
src/include/compat.h
src/include/config-h.in.cmake
src/include/denc.h
src/include/frag.h
src/include/rados/librados.h
src/include/rados/librados.hpp
src/include/radosstriper/libradosstriper.h
src/include/utime.h
src/json_spirit/json_spirit_reader_template.h
src/key_value_store/key_value_structure.h
src/key_value_store/kv_flat_btree_async.h
src/kv/KeyValueDB.h
src/kv/rocksdb_cache/BinnedLRUCache.h
src/librados/RadosXattrIter.h
src/libradosstriper/RadosStriperImpl.cc
src/messages/MOSDOp.h
src/messages/MOSDPing.h
src/messages/MOSDRepOp.h
src/messages/MOSDRepOpReply.h
src/msg/Connection.h
src/msg/Messenger.h
src/msg/async/AsyncMessenger.h
src/msg/async/dpdk/DPDK.h
src/msg/async/dpdk/PacketUtil.h
src/msg/async/dpdk/TCP.h
src/msg/simple/SimpleMessenger.h
src/os/ObjectStore.h
src/os/bluestore/BlueStore.h
src/os/bluestore/bluefs_types.h
src/os/filestore/CollectionIndex.h
src/os/filestore/DBObjectMap.h
src/os/filestore/HashIndex.h
src/os/filestore/IndexManager.h
src/os/filestore/LFNIndex.h
src/osd/OSDMap.h

index c88061e9647f3bc10b8cd4ef78e11af942251585..4524373ca2660225fefaca457f3e4468d271e381 100644 (file)
@@ -21,7 +21,7 @@
 #define rdout(x) lgeneric_subdout(cct,reserver,x)
 
 /**
- * Manages a configurable number of asyncronous reservations.
+ * Manages a configurable number of asynchronous reservations.
  *
  * Memory usage is linear with the number of items queued and
  * linear with respect to the total number of priorities used
index 33d400e1d83355bab33ea7de8dd51a74c58dc981..542d9c2f53204079d44881ddc6fdac0d6f998151 100644 (file)
@@ -25,7 +25,7 @@
 
 /**
  *
- * TODO: normalize value based on some fucntion of half_life, 
+ * TODO: normalize value based on some function of half_life, 
  *  so that it can be interpreted as an approximation of a
  *  moving average of N seconds.  currently, changing half-life
  *  skews the scale of the value, even at steady state.  
index 156bd2cc85874d308cece13c8a50c7144a273f28..26894b37fd2a3366e748b74494eaac77d52bf0fe 100644 (file)
@@ -28,7 +28,7 @@ namespace ceph {
  * Abstract class for all Op Queues
  *
  * In order to provide optimized code, be sure to declare all
- * virutal functions as final in the derived class.
+ * virtual functions as final in the derived class.
  */
 
 template <typename T, typename K>
index c28eb6efdf50670ab4bf967bd8c529a70b5e6180..a5173afb0e3b9e24d4daa78328a7f0bbf389ab8b 100644 (file)
@@ -285,7 +285,7 @@ private:
  * Throttles the maximum number of active requests and completes them in order
  *
  * Operations can complete out-of-order but their associated Context callback
- * will completed in-order during invokation of start_op() and wait_for_ret()
+ * will completed in-order during invocation of start_op() and wait_for_ret()
  */
 class OrderedThrottle {
 public:
index e6ce1c1fbdd3f141f5007d1e8533b73fe11e8064..f49ac0b0947a6805ee99ebb2c760871b0370ab2d 100644 (file)
@@ -77,7 +77,7 @@ public:
    * Call with the event_lock LOCKED
    *
    * Returns true if the callback was cancelled.
-   * Returns false if you never addded the callback in the first place.
+   * Returns false if you never added the callback in the first place.
    */
   bool cancel_event(Context *callback);
 
index 877187d8015ec09817a5e4eb6b060d5c212aa0ca..4805495fa90e561e3c68463a636c1d8f7f99c91a 100644 (file)
@@ -231,7 +231,7 @@ class WeightedPriorityQueue :  public OpQueue <T, K>
              // Pick a new priority out of the total priority.
              unsigned prio = rand() % total_prio + 1;
              unsigned tp = total_prio - i->key;
-             // Find the priority coresponding to the picked number.
+             // Find the priority corresponding to the picked number.
              // Subtract high priorities to low priorities until the picked number
              // is more than the total and try to dequeue that priority.
              // Reverse the direction from previous implementation because there is a higher
index ec3d5ae04fba21f3c8a4ea86c2569ec491db0ee5..9f2c5ee87e233da0a0c9d0ae493b579d5c399df2 100644 (file)
@@ -58,12 +58,12 @@ public:
    * registered, and an incoming command is 'foo bar baz', it is
    * matched with 'foo bar', while 'foo fud' will match 'foo'.
    *
-   * The entire incoming command string is passed to the registred
+   * The entire incoming command string is passed to the registered
    * hook.
    *
    * @param command command string
    * @param cmddesc command syntax descriptor
-   * @param hook implementaiton
+   * @param hook implementation
    * @param help help text.  if empty, command will not be included in 'help' output.
    *
    * @return 0 for success, -EEXIST if command already registered.
index 5dbd112981a11ac3b62dd997f3d3ed45968bcace..3e002344046da71ec1ec9817279fc2b065c115f9 100644 (file)
@@ -460,7 +460,7 @@ namespace cohort {
       void drain(std::function<void(T*)> uref,
                 uint32_t flags = FLAG_NONE) {
        /* clear a table, call supplied function on
-        * each element found (e.g., retuns sentinel
+        * each element found (e.g., returns sentinel
         * references) */
        Object::Queue2 drain_q;
        for (int t_ix = 0; t_ix < n_part; ++t_ix) {
index 133533bb27d45e0099d0dd3fed9cd8ef15516452..5a19d44ca924a52cc865867e055ab0a32bc6c6f4 100644 (file)
@@ -37,7 +37,7 @@ enum common_init_flags_t {
   // don't drop privileges
   CINIT_FLAG_DEFER_DROP_PRIVILEGES = 0x10,
 
-  // do'nt contact mons for config
+  // don't contact mons for config
   CINIT_FLAG_NO_MON_CONFIG = 0x20,
 };
 
index 97178520b7eccd40ff71f0fa6aed3e459de1bae2..2d8770158acdb89ff34194d3d17d2b3af478c85e 100644 (file)
@@ -19,7 +19,7 @@
 #include <boost/utility/string_view.hpp>
 
 /* Returns the length of a buffer that would be needed to escape 'buf'
- * as an XML attrribute
+ * as an XML attribute
  */
 size_t escape_xml_attr_len(const char *buf);
 
@@ -30,7 +30,7 @@ size_t escape_xml_attr_len(const char *buf);
 void escape_xml_attr(const char *buf, char *out);
 
 /* Returns the length of a buffer that would be needed to escape 'buf'
- * as an JSON attrribute
+ * as an JSON attribute
  */
 size_t escape_json_attr_len(const char *buf, size_t src_len);
 
index 602248cf1c0a5e5e25e420e08de358010eddcf43..b203dab0969922628ba1d05d81f7e17c26147136 100644 (file)
@@ -130,7 +130,7 @@ OPTION(ms_bind_ipv6, OPT_BOOL)
 OPTION(ms_bind_port_min, OPT_INT)
 OPTION(ms_bind_port_max, OPT_INT)
 OPTION(ms_bind_retry_count, OPT_INT) // If binding fails, how many times do we retry to bind
-OPTION(ms_bind_retry_delay, OPT_INT) // Delay between attemps to bind
+OPTION(ms_bind_retry_delay, OPT_INT) // Delay between attempts to bind
 OPTION(ms_bind_before_connect, OPT_BOOL)
 OPTION(ms_tcp_listen_backlog, OPT_INT)
 OPTION(ms_rwthread_stack_bytes, OPT_U64)
@@ -498,7 +498,7 @@ OPTION(mds_op_complaint_time, OPT_FLOAT) // how many seconds old makes an op com
 OPTION(mds_op_log_threshold, OPT_INT) // how many op log messages to show in one go
 OPTION(mds_snap_min_uid, OPT_U32) // The minimum UID required to create a snapshot
 OPTION(mds_snap_max_uid, OPT_U32) // The maximum UID allowed to create a snapshot
-OPTION(mds_snap_rstat, OPT_BOOL) // enable/disbale nested stat for snapshot
+OPTION(mds_snap_rstat, OPT_BOOL) // enable/disable nested stat for snapshot
 OPTION(mds_verify_backtrace, OPT_U32)
 // detect clients which aren't trimming completed requests
 OPTION(mds_max_completed_flushes, OPT_U32)
@@ -880,7 +880,7 @@ OPTION(osd_recovery_priority, OPT_U32)
 OPTION(osd_recovery_cost, OPT_U32)
 
 /**
- * osd_recovery_op_warn_multiple scales the normal warning threshhold,
+ * osd_recovery_op_warn_multiple scales the normal warning threshold,
  * osd_op_complaint_time, so that slow recovery ops won't cause noise
  */
 OPTION(osd_recovery_op_warn_multiple, OPT_U32)
@@ -1165,7 +1165,7 @@ OPTION(filestore_collect_device_partition_information, OPT_BOOL)
 
 // (try to) use extsize for alloc hint NOTE: extsize seems to trigger
 // data corruption in xfs prior to kernel 3.5.  filestore will
-// implicity disable this if it cannot confirm the kernel is newer
+// implicitly disable this if it cannot confirm the kernel is newer
 // than that.
 // NOTE: This option involves a tradeoff: When disabled, fragmentation is
 // worse, but large sequential writes are faster. When enabled, large
index 0b9f782bc9e3d6b72ea1cbd1ae156aaceec33873..57e1a157c57a22a005562a50134d63d5e6628569 100644 (file)
@@ -38,7 +38,7 @@ enum perfcounter_type_d : uint8_t
   PERFCOUNTER_TIME = 0x1,       // float (measuring seconds)
   PERFCOUNTER_U64 = 0x2,        // integer (note: either TIME or U64 *must* be set)
   PERFCOUNTER_LONGRUNAVG = 0x4, // paired counter + sum (time)
-  PERFCOUNTER_COUNTER = 0x8,    // counter (vs guage)
+  PERFCOUNTER_COUNTER = 0x8,    // counter (vs gauge)
   PERFCOUNTER_HISTOGRAM = 0x10, // histogram (vector) of values
 };
 
index a8deb07fe5faf1eb87522190988be6dbcc25c885..964216d7f4310de66aed106bd80ca714f72b3c69 100644 (file)
@@ -62,7 +62,7 @@ __FBSDID("$FreeBSD: src/sys/netinet/sctp_crc32.c,v 1.8 2007/05/08 17:01:10 rrs E
  *                             non-NULL if the mode argument is equal to CONT or END
  *             p_buf - the packet buffer where crc computations are being performed
  *             length - the length of p_buf in bytes
- *             init_bytes - the number of initial bytes that need to be procesed before
+ *             init_bytes - the number of initial bytes that need to be processed before
  *                                      aligning p_buf to multiples of 4 bytes
  *             mode - can be any of the following: BEGIN, CONT, END, BODY, ALIGN
  *
index 510b535329ea9d0fe7d2bbf7e2835cfa90e0083b..c7afcf1e1e0028df275706012c2fdf60438e8ab2 100644 (file)
@@ -65,7 +65,7 @@ ceph_os_fsetxattr(int fd, const char *name, const void *value,
 #elif defined(__linux__)
        error = fsetxattr(fd, name, value, size, 0);
 #elif defined(__APPLE__)
-       error = fsetxattr(fd, name, value, size, 0, 0 /* no options should be indentical to Linux */ );
+       error = fsetxattr(fd, name, value, size, 0, 0 /* no options should be identical to Linux */ );
 #endif
 
        return (error);
index d37c9f7fe3e8b9ab28b89ffd060605089bc75d5b..cfd72d2a40d2561c67d944c9fcf717f5afbf749d 100644 (file)
@@ -85,7 +85,7 @@ public:
    * @param n_threads the number of threads in this thread pool.
    * @param cpu the CPU core to which this thread pool is assigned
    * @note each @c Task has its own ceph::thread::Condition, which possesses
-   * possesses an fd, so we should keep the size of queue under a resonable
+   * possesses an fd, so we should keep the size of queue under a reasonable
    * limit.
    */
   ThreadPool(size_t n_threads, size_t queue_sz, unsigned cpu);
index 74e23065b7617b45d85c8974e9b3adc707cda768..cbe487ce5376195a11ef7f576599f020b3751e48 100644 (file)
@@ -724,7 +724,7 @@ public:
 
   /**
    * returns (type_id, type) of all parent buckets between id and
-   * default, can be used to check for anomolous CRUSH maps
+   * default, can be used to check for anomalous CRUSH maps
    */
   map<int, string> get_parent_hierarchy(int id) const;
 
index 53a6e1b91ef64a101fe9ac1fd41024af730d87c0..68dfcb69bc1749d23461fc344341f90db7e19dcb 100644 (file)
@@ -417,7 +417,7 @@ err:
  * next item or set of items.  or why pow() is used the way it is.
  *
  * note that the original version 1 of this function made special
- * accomodation for the case where straw lengths were identical.  this
+ * accommodation for the case where straw lengths were identical.  this
  * is also flawed in a non-obvious way; version 2 drops the special
  * handling and appears to work just as well.
  *
index ffb5eaf22dbc1d03f983dba3389bb58d68b0242d..bdf0a4b9cd881da9f8d19757f46bb111217c75e6 100644 (file)
@@ -166,7 +166,7 @@ extern int crush_get_next_bucket_id(struct crush_map *map);
  *   to another bucket.
  *
  * @param[in] map the crush_map
- * @param[in] bucketno the bucket unique identifer or 0
+ * @param[in] bucketno the bucket unique identifier or 0
  * @param[in] bucket the bucket to add to the __map__
  * @param[out] idout a pointer to the bucket identifier
  *
@@ -267,7 +267,7 @@ extern int crush_remove_bucket(struct crush_map *map, struct crush_bucket *bucke
  *
  * Remove __item__ from __bucket__ and subtract the item weight from
  * the bucket weight. If the weight of the item is greater than the
- * weight of the bucket, silentely set the bucket weight to zero.
+ * weight of the bucket, silently set the bucket weight to zero.
  *
  * - return -ENOMEM if the __bucket__ cannot be sized down with __realloc(3)__.
  * - return -1 if the value of __bucket->alg__ is unknown.
index a4d20a6fb17a571e84b9c549a0e9ab25b35c4977..7b176de81fbe36d9db8430708ceb4e17d22e40ac 100644 (file)
@@ -174,7 +174,7 @@ ErasureCodeIsaTableCache::getEncodingCoefficient(int matrix, int k, int m)
 unsigned char**
 ErasureCodeIsaTableCache::getEncodingCoefficientNoLock(int matrix, int k, int m)
 {
-  // create a pointer to store an encoding coefficients adddress
+  // create a pointer to store an encoding coefficients address
   if (!encoding_coefficient[matrix][k][m]) {
     encoding_coefficient[matrix][k][m] = new (unsigned char*);
     *encoding_coefficient[matrix][k][m] = 0;
index 649cbc2498abfaa496deba8b80d0ccb59719a4c9..90d0dc8797b6fbdb534a4d982b5265c0fa4f1bbb 100644 (file)
@@ -452,7 +452,7 @@ void ErasureCodeJerasureLiberation::prepare()
 //
 bool ErasureCodeJerasureBlaumRoth::check_w(ostream *ss) const
 {
-  // back in Firefly, w = 7 was the default and produced useable 
+  // back in Firefly, w = 7 was the default and produced usable
   // chunks. Tolerate this value for backward compatibility.
   if (w == 7)
     return true;
index 99f031ce4841a0d85f41d05c17b860f4ff6eb9d7..f725095c5fd8d4f5c0738a1edb936a54a1db0dd4 100644 (file)
@@ -164,7 +164,7 @@ DEFINE_CEPH_FEATURE(59, 1, MSG_ADDR2) // overlap
 DEFINE_CEPH_FEATURE(60, 1, OSD_RECOVERY_DELETES) // *do not share this bit*
 DEFINE_CEPH_FEATURE(61, 1, CEPHX_V2)             // *do not share this bit*
 
-DEFINE_CEPH_FEATURE(62, 1, RESERVED)           // do not use; used as a sentinal
+DEFINE_CEPH_FEATURE(62, 1, RESERVED)           // do not use; used as a sentinel
 DEFINE_CEPH_FEATURE_DEPRECATED(63, 1, RESERVED_BROKEN, LUMINOUS) // client-facing
 
 
index 9e7cae8eca271f5d771ef764de3b276103ca1790..3a36959a504b009562eb46e9b12c6c90562c9843 100644 (file)
@@ -495,7 +495,7 @@ struct ceph_mds_request_head_legacy {
 } __attribute__ ((packed));
 
 /*
- * Note that this is embedded wthin ceph_mds_request_head. Also, compatability
+ * Note that this is embedded wthin ceph_mds_request_head. Also, compatibility
  * with the ceph_mds_request_args_legacy must be maintained!
  */
 union ceph_mds_request_args {
index 17f598146a05e948f8093b6d42f6091956780b81..f27fa295131f4894a9309ecad971315dd22e7cc1 100644 (file)
@@ -63,7 +63,7 @@ struct ceph_statx {
 #define CEPH_STATX_ALL_STATS   0x00001fffU     /* All supported stats */
 
 /*
- * Compatability macros until these defines make their way into glibc
+ * Compatibility macros until these defines make their way into glibc
  */
 #ifndef AT_NO_ATTR_SYNC
 #define AT_NO_ATTR_SYNC                0x4000 /* Don't sync attributes with the server */
index b6c629b7e03dd9bb8250cf75946e53c699c5a53e..397a5d99be586c8ffb6065093ae79f99e9998142 100644 (file)
@@ -51,7 +51,7 @@
 // are included before this file. Redefinition might not help in this
 // case since already parsed code has evaluated to the wrong value.
 // This would warrrant for d definition that would actually be evaluated
-// at the location of usage and report a possible confict.
+// at the location of usage and report a possible conflict.
 // This is left up to a future improvement
 #elif (ENODATA != 87)
 // #warning ENODATA already defined to a value different from 87 (ENOATRR), refining to fix
index 9f76d40b60385d919c4b4577bb8e7d513d4c55a3..329fb526febc6bc2854e96ba686aed8e103c3402 100644 (file)
 /* Defined if you have libzfs enabled */
 #cmakedefine HAVE_LIBZFS
 
-/* Define if the C complier supports __func__ */
+/* Define if the C compiler supports __func__ */
 #cmakedefine HAVE_FUNC
 
-/* Define if the C complier supports __PRETTY_FUNCTION__ */
+/* Define if the C compiler supports __PRETTY_FUNCTION__ */
 #cmakedefine HAVE_PRETTY_FUNC
 
 /* F_SETPIPE_SZ is supported */
index c8d79f8886893bcfc593096983d28e0a25eacdc2..0144a1504aab315ff78f6071b8bbddc7ff73113e 100644 (file)
@@ -308,8 +308,8 @@ struct denc_traits<
 // otype == external type, i.e., the type on the wire
 
 // NOTE: the overload resolution ensures that the legacy encode/decode methods
-// defined for int types is prefered to the ones  defined using the specialized
-// template, and hence get selected. This machinary prevents these these from
+// defined for int types is preferred to the ones  defined using the specialized
+// template, and hence get selected. This machinery prevents these these from
 // getting glued into the legacy encode/decode methods; the overhead of setting
 // up a contiguous_appender etc is likely to be slower.
 namespace _denc {
index 8c841ef4fee481c69c439aafc09252cff60c8a34..285f4775e36ca200a9eb8c270cf14eda9946d8d4 100644 (file)
@@ -70,7 +70,7 @@
  *  - get_first_child(), next_sibling(int parent_bits) to make (possibly partial) 
  *    iteration efficient (see, e.g., try_assimilate_children()
  *  - rework frag_t so that we mask the left-most (most significant) bits instead of
- *    the right-most (least significant) bits.  just because it's more intutive, and
+ *    the right-most (least significant) bits.  just because it's more intuitive, and
  *    matches the network/netmask concept.
  */
 
index bbdb6c783853b59a9ab874c338df57f89070aefb..80064b23b051adf547086b66ff2ce6796489fdd2 100644 (file)
@@ -457,7 +457,7 @@ CEPH_RADOS_API int rados_ping_monitor(rados_t cluster, const char *mon_id,
  * @post If this succeeds, any function in librados may be used
  *
  * @param cluster The cluster to connect to.
- * @returns 0 on sucess, negative error code on failure
+ * @returns 0 on success, negative error code on failure
  */
 CEPH_RADOS_API int rados_connect(rados_t cluster);
 
@@ -635,7 +635,7 @@ CEPH_RADOS_API int rados_cluster_fsid(rados_t cluster, char *buf, size_t len);
  * Get/wait for the most recent osdmap
  * 
  * @param cluster the cluster to shutdown
- * @returns 0 on sucess, negative error code on failure
+ * @returns 0 on success, negative error code on failure
  */
 CEPH_RADOS_API int rados_wait_for_latest_osdmap(rados_t cluster);
 
@@ -728,7 +728,7 @@ CEPH_RADOS_API int rados_get_min_compatible_osd(rados_t cluster,
  *  based upon the current features
  * @param[out] require_min_compat_client required minimum client version
  *  based upon explicit setting
- * @returns 0 on sucess, negative error code on failure
+ * @returns 0 on success, negative error code on failure
  */
 CEPH_RADOS_API int rados_get_min_compatible_client(rados_t cluster,
                                                    int8_t* min_compat_client,
@@ -1546,7 +1546,7 @@ CEPH_RADOS_API int rados_read(rados_ioctx_t io, const char *oid, char *buf,
  * @param init_value the init value for the algorithm
  * @param init_value_len the length of the init value
  * @param len the number of bytes to checksum
- * @param off the offset to start checksuming in the object
+ * @param off the offset to start checksumming in the object
  * @param chunk_size optional length-aligned chunk size for checksums
  * @param pchecksum where to store the checksum result
  * @param checksum_len the number of bytes available for the result
@@ -1801,7 +1801,7 @@ CEPH_RADOS_API int rados_stat(rados_ioctx_t io, const char *o, uint64_t *psize,
  *    - N bytes = key name
  *
  * Restrictions:
- *  - The HDR update must preceed any key/value updates.
+ *  - The HDR update must precede any key/value updates.
  *  - All key/value updates must be in lexicographically sorted order
  *    in cmdbuf.
  *  - You can read/write to a tmap object via the regular APIs, but
@@ -2078,7 +2078,7 @@ CEPH_RADOS_API int rados_aio_write(rados_ioctx_t io, const char *oid,
                                   const char *buf, size_t len, uint64_t off);
 
 /**
- * Asychronously append data to an object
+ * Asynchronously append data to an object
  *
  * Queues the append and returns.
  *
@@ -2098,7 +2098,7 @@ CEPH_RADOS_API int rados_aio_append(rados_ioctx_t io, const char *oid,
                                    const char *buf, size_t len);
 
 /**
- * Asychronously write an entire object
+ * Asynchronously write an entire object
  *
  * The object is filled with the provided data. If the object exists,
  * it is atomically truncated and then written.
@@ -2120,7 +2120,7 @@ CEPH_RADOS_API int rados_aio_write_full(rados_ioctx_t io, const char *oid,
                                        const char *buf, size_t len);
 
 /**
- * Asychronously write the same buffer multiple times
+ * Asynchronously write the same buffer multiple times
  *
  * Queues the writesame and returns.
  *
@@ -2143,7 +2143,7 @@ CEPH_RADOS_API int rados_aio_writesame(rados_ioctx_t io, const char *oid,
                                       size_t write_len, uint64_t off);
 
 /**
- * Asychronously remove an object
+ * Asynchronously remove an object
  *
  * Queues the remove and returns.
  *
@@ -2160,7 +2160,7 @@ CEPH_RADOS_API int rados_aio_remove(rados_ioctx_t io, const char *oid,
                                    rados_completion_t completion);
 
 /**
- * Asychronously read data from an object
+ * Asynchronously read data from an object
  *
  * The io context determines the snapshot to read from, if any was set
  * by rados_ioctx_snap_set_read().
@@ -2798,7 +2798,7 @@ CEPH_RADOS_API int rados_set_alloc_hint2(rados_ioctx_t io, const char *o,
  * @name Object Operations
  *
  * A single rados operation can do multiple operations on one object
- * atomicly. The whole operation will suceed or fail, and no partial
+ * atomically. The whole operation will succeed or fail, and no partial
  * results will be visible.
  *
  * Operations may be either reads, which can return data, or writes,
@@ -3350,7 +3350,7 @@ CEPH_RADOS_API void rados_read_op_read(rados_read_op_t read_op,
  * @param init_value the init value for the algorithm
  * @param init_value_len the length of the init value
  * @param len the number of bytes to checksum
- * @param off the offset to start checksuming in the object
+ * @param off the offset to start checksumming in the object
  * @param chunk_size optional length-aligned chunk size for checksums
  * @param pchecksum where to store the checksum result for this action
  * @param checksum_len the number of bytes available for the result
@@ -3777,7 +3777,7 @@ CEPH_RADOS_API int rados_application_metadata_remove(rados_ioctx_t io,
  * @param keys_len number of bytes in keys buffer
  * @param values buffer in which to store values
  * @param vals_len number of bytes in values buffer
- * @returns 0 on succcess, negative error code on failure
+ * @returns 0 on success, negative error code on failure
  * @returns -ERANGE if either buffer is too short
  */
 CEPH_RADOS_API int rados_application_metadata_list(rados_ioctx_t io,
index affe405e654870a2d14fc52cf6661d3cbc443356..0f47dd6b7fda317e1b8eb726b331ced4f2ffee1a 100644 (file)
@@ -316,7 +316,7 @@ namespace librados
     void assert_version(uint64_t ver);
 
     /**
-     * Guard operatation with a check that the object already exists
+     * Guard operation with a check that the object already exists
      */
     void assert_exists();
 
@@ -1033,7 +1033,7 @@ namespace librados
                      size_t write_len, uint64_t off);
 
     /**
-     * Asychronously remove an object
+     * Asynchronously remove an object
      *
      * Queues the remove and returns.
      *
index 9e46867d591305b1066fb8eea8c6b14f82d3284c..7eb33596c43430365b229550c14360494187ec0a 100644 (file)
@@ -56,7 +56,7 @@ void rados_striper_destroy(rados_striper_t striper);
  * This layout will be used when new objects are created (by writing to them)
  * Already existing objects will be opened with their own layout.
  *
- * @param striper the targetted striper
+ * @param striper the targeted striper
  * @param stripe_unit the stripe_unit value of the new object layout
  * @returns 0 on success, negative error code on failure
  */
@@ -68,7 +68,7 @@ int rados_striper_set_object_layout_stripe_unit(rados_striper_t striper,
  * This layout will be used when new objects are created (by writing to them)
  * Already existing objects will be opened with their own layout.
  *
- * @param striper the targetted striper
+ * @param striper the targeted striper
  * @param stripe_count the stripe_count value of the new object layout
  * @returns 0 on success, negative error code on failure
  */
@@ -80,7 +80,7 @@ int rados_striper_set_object_layout_stripe_count(rados_striper_t striper,
  * This layout will be used when new objects are created (by writing to them)
  * Already existing objects will be opened with their own layout.
  *
- * @param striper the targetted striper
+ * @param striper the targeted striper
  * @param object_size the object_size value of the new object layout
  * @returns 0 on success, negative error code on failure
  */
index 08db335e246c0f98f924efb1c5fb8a40b83df28b..bc9f6429a12c1be8e4198b844886b40e5e39f2f4 100644 (file)
@@ -35,7 +35,7 @@
 inline __u32 cap_to_u32_max(__u64 t) {
   return std::min(t, (__u64)std::numeric_limits<uint32_t>::max());
 }
-/* WARNING: If add member in utime_t, please make sure the encode/decode funtion
+/* WARNING: If add member in utime_t, please make sure the encode/decode function
  * work well. For little-endian machine, we should make sure there is no padding
  * in 32-bit machine and 64-bit machine.
  * You should also modify the padding_check function.
index 59a8a0512653e36d96b207fee122d51fc73a990a..2d0b3a440e61714daeb60f476697833446af5fbb 100644 (file)
@@ -388,7 +388,7 @@ namespace json_spirit
        throw reason;\r
     }\r
 \r
-    // the spirit gramme\r
+    // the spirit gramma\r
     //\r
     template< class Value_type, class Iter_type >\r
     class Json_grammer : public spirit_namespace::grammar< Json_grammer< Value_type, Iter_type > >\r
@@ -465,7 +465,7 @@ namespace json_spirit
                 Int_action    new_int    ( boost::bind( &Semantic_actions_t::new_int,     &self.actions_, _1 ) );\r
                 Uint64_action new_uint64 ( boost::bind( &Semantic_actions_t::new_uint64,  &self.actions_, _1 ) );\r
 \r
-                // actual grammer\r
+                // actual grammar\r
 \r
                 json_\r
                     = value_ | eps_p[ &throw_not_value ]\r
index e5f16d2f6a051a304e6463ca490ccd0e3e676798..c73adc1a1e587f16caf949455155598d59e55e06 100644 (file)
@@ -69,7 +69,7 @@ public:
   /**
    * set the method that gets called before each ObjectWriteOperation.
    * If waite_time is set and the method passed involves waiting, it will wait
-   * for that many miliseconds.
+   * for that many milliseconds.
    */
   virtual void set_inject(injection_t inject, int wait_time) = 0;
 
index 92c4d3b6ae9b16b38411adcf4c4756bf6ad6548e..346e4056cd3ee6e17de21faa73f892e1d773f887 100644 (file)
@@ -812,7 +812,7 @@ KvFlatBtreeAsync(int k_val, string name, int cache, double cache_r,
   /**
    * sets this kvba to call inject before every ObjectWriteOperation.
    * If inject is wait and wait_time is set, wait will have a 10% chance of
-   * sleeping for waite_time miliseconds.
+   * sleeping for waite_time milliseconds.
    */
   void set_inject(injection_t inject, int wait_time) override;
 
index f9d9665aed63e1f26c3a76645df83853f6ebc030..74822fbc7b595d797e7252849d8a47ffe929f29c 100644 (file)
@@ -200,7 +200,7 @@ public:
   }
 
   // This superclass is used both by kv iterators *and* by the ObjectMap
-  // omap iterator.  The class hiearchies are unfortunatley tied together
+  // omap iterator.  The class hierarchies are unfortunately tied together
   // by the legacy DBOjectMap implementation :(.
   class SimplestIteratorImpl {
   public:
index 0cf9819f8686202ba32173322b2bfe1b8e2c5168..17f91723037f0d6387960fcb4d5362ff15407db1 100644 (file)
@@ -215,10 +215,10 @@ class alignas(CACHE_LINE_SIZE) BinnedLRUCacheShard : public CacheShard {
   //  not threadsafe
   size_t TEST_GetLRUSize();
 
-  //  Retrives high pri pool ratio
+  //  Retrieves high pri pool ratio
   double GetHighPriPoolRatio() const;
 
-  // Retrives high pri pool usage
+  // Retrieves high pri pool usage
   size_t GetHighPriPoolUsage() const;
 
  private:
@@ -305,7 +305,7 @@ class BinnedLRUCache : public ShardedCache {
   size_t TEST_GetLRUSize();
   // Sets the high pri pool ratio
   void SetHighPriPoolRatio(double high_pri_pool_ratio);
-  //  Retrives high pri pool ratio
+  //  Retrieves high pri pool ratio
   double GetHighPriPoolRatio() const;
   // Retrieves high pri pool usage
   size_t GetHighPriPoolUsage() const;
index 6b232bd5873eea52fcef6f5920736cebda7def35..20a926140ea4487c2d262c303b4898ed1df44a51 100644 (file)
@@ -23,7 +23,7 @@
 namespace librados {
 
   /**
-   * iterator object used in implementation of the extrenal
+   * iterator object used in implementation of the external
    * attributes part of the C interface of librados
    */
   struct RadosXattrsIter {
index ac47951657379e4525cb9e0a28c36f0e6247bb8f..1a3eb99f860abaaec98444fd9bfae11d18ecd1db 100644 (file)
@@ -60,7 +60,7 @@
  *
  * Still the writing to a striped object is not atomic. This means in particular that
  * the size of an object may not be in sync with its content at all times.
- * As the size is always garanteed to be updated first and in an atomic way, and as
+ * As the size is always guaranteed to be updated first and in an atomic way, and as
  * sparse striped objects are supported (see below), what will typically happen is
  * that a reader that comes too soon after a write will read 0s instead of the actual
  * data.
@@ -1080,7 +1080,7 @@ int libradosstriper::RadosStriperImpl::internal_aio_remove(
     // return
     return rcr;
   } catch (ErrorCode &e) {
-    // errror caught when trying to take the exclusive lock
+    // error caught when trying to take the exclusive lock
     return e.m_code;
   }
 
index bfd0b8a506f4534de8e213d748a3599c416be326..a8a379d8495ed1052499112cf8b50408c2a584c4 100644 (file)
@@ -48,7 +48,7 @@ private:
   hobject_t hobj;
   spg_t pgid;
   bufferlist::const_iterator p;
-  // Decoding flags. Decoding is only needed for messages catched by pipe reader.
+  // Decoding flags. Decoding is only needed for messages caught by pipe reader.
   // Transition from true -> false without locks being held
   // Can never see final_decode_needed == false and partial_decode_needed == true
   atomic<bool> partial_decode_needed;
index 16c6e3d6f013bb9a82809c612c01654adee8d89d..555807d3cceae4e4b99d32061cc2b8f16a248e74 100644 (file)
@@ -104,7 +104,7 @@ public:
     encode((uint32_t)s, payload);
     if (s) {
       // this should be big enough for normal min_message padding sizes. since
-      // we are targetting jumbo ethernet frames around 9000 bytes, 16k should
+      // we are targeting jumbo ethernet frames around 9000 bytes, 16k should
       // be more than sufficient!  the compiler will statically zero this so
       // that at runtime we are only adding a bufferptr reference to it.
       static char zeros[16384] = {};
index fc6d06c1f7583e18f784090e84d9b951d586d347..0e587c48d741fa78013bb4f36b70f99affbedec0 100644 (file)
@@ -38,7 +38,7 @@ public:
   spg_t pgid;
 
   bufferlist::const_iterator p;
-  // Decoding flags. Decoding is only needed for messages catched by pipe reader.
+  // Decoding flags. Decoding is only needed for messages caught by pipe reader.
   bool final_decode_needed;
 
   // subop
@@ -81,7 +81,7 @@ public:
 
   void decode_payload() override {
     p = payload.cbegin();
-    // splitted to partial and final
+    // split to partial and final
     decode(map_epoch, p);
     if (header.version >= 2) {
       decode(min_epoch, p);
index 887242016ccbaa1e9781a4559f530a2def957e1d..3a7e5a762259764e298ec0972f460c443d5e693e 100644 (file)
@@ -48,7 +48,7 @@ public:
   eversion_t last_complete_ondisk;
 
   bufferlist::const_iterator p;
-  // Decoding flags. Decoding is only needed for messages catched by pipe reader.
+  // Decoding flags. Decoding is only needed for messages caught by pipe reader.
   bool final_decode_needed;
 
   epoch_t get_map_epoch() const override {
index 03375a4dc8ce9fecc9cf392a0219f284e035a354..0744f19d38c15b83dbd80a53f2fbe6bf8a1f30f7 100644 (file)
@@ -55,7 +55,7 @@ public:
 
 public:
   Connection(CephContext *cct, Messenger *m)
-    // we are managed exlusively by ConnectionRef; make it so you can
+    // we are managed exclusively by ConnectionRef; make it so you can
     //   ConnectionRef foo = new Connection;
     : RefCountedObject(cct, 0),
       lock("Connection::lock"),
index 04067411c93dbf1ca6339f991c15d986035fbb72..737d1bcaba494f43ac7acd1306c91d29e8888088 100644 (file)
@@ -676,7 +676,7 @@ public:
   }
 
   /**
-   * Notify each Dispatcher of a new incomming Connection. Call
+   * Notify each Dispatcher of a new incoming Connection. Call
    * this function whenever a new Connection is accepted.
    *
    * @param con Pointer to the new Connection.
index 27c228ed9955fc3442a25fa682c7e6bb1aaf0051..f3546325df03e5f1ec71e7929ce93b38daec4da3 100644 (file)
@@ -278,7 +278,7 @@ private:
   ceph::unordered_map<entity_addrvec_t, AsyncConnectionRef> conns;
 
   /**
-   * list of connection are in teh process of accepting
+   * list of connection are in the process of accepting
    *
    * These are not yet in the conns map.
    */
index 1feb661ef3246c5979070cd43cf95ba7a3a7c896..fa12af6b279a06716dee3cec4338011dd35c64c3 100644 (file)
@@ -280,7 +280,7 @@ class DPDKQueuePair {
         DPDKQueuePair& qp, rte_mbuf*& m, char* va, size_t buf_len) {
       static constexpr size_t max_frag_len = 15 * 1024; // 15K
 
-      // FIXME: current all tx buf is alloced without rte_malloc
+      // FIXME: current all tx buf is allocated without rte_malloc
       return copy_one_data_buf(qp, m, va, buf_len);
       //
       // Currently we break a buffer on a 15K boundary because 82599
index af834307f8149db9cbcfa658aafda5ddbe4a0de3..118218e6633f7e1484878b52a04c0169ac77e579 100644 (file)
@@ -46,7 +46,7 @@ class packet_merger {
     bool insert = true;
     auto beg = offset;
     auto end = beg + p.len();
-    // Fisrt, try to merge the packet with existing segment
+    // First, try to merge the packet with existing segment
     for (auto it = map.begin(); it != map.end();) {
       auto& seg_pkt = it->second;
       auto seg_beg = it->first;
@@ -101,7 +101,7 @@ class packet_merger {
     }
 
     // Second, merge adjacent segments after this packet has been merged,
-    // becasue this packet might fill a "whole" and make two adjacent
+    // because this packet might fill a "whole" and make two adjacent
     // segments mergable
     for (auto it = map.begin(); it != map.end();) {
       // The first segment
index 8005e783c2a62fc3a3b78fbf69030e71d3912fe0..b7bd7132decdeee9138c3ae8a71a25f7ca1fb54e 100644 (file)
@@ -1063,7 +1063,7 @@ Packet tcp<InetTraits>::tcb::get_transmit_packet() {
   // Max number of TCP payloads we can pass to NIC
   uint32_t len;
   if (_tcp.get_hw_features().tx_tso) {
-    // FIXME: Info tap device the size of the splitted packet
+    // FIXME: Info tap device the size of the split packet
     len = _tcp.get_hw_features().max_packet_len - tcp_hdr_len_min - InetTraits::ip_hdr_len_min;
   } else {
     len = std::min(uint16_t(_tcp.get_hw_features().mtu - tcp_hdr_len_min - InetTraits::ip_hdr_len_min), _snd.mss);
index c522ba39565f83200402a60825931fe198f9de61..d899ba31d2c7a384e9e1e76363941b26cbd1c5e2 100644 (file)
@@ -305,7 +305,7 @@ private:
    */
   ceph::unordered_map<entity_addr_t, Pipe*> rank_pipe;
   /**
-   * list of pipes are in teh process of accepting
+   * list of pipes are in the process of accepting
    *
    * These are not yet in the rank_pipe map.
    */
index 77305025f605cbab9428232213a2c052f6568cbe..736cab460d3bacc3dd235f4e3aed7f935998d0cc 100644 (file)
@@ -146,7 +146,7 @@ public:
      * 1) collection is currently idle: the method returns true.  c is
      *    not touched.
      * 2) collection is not idle: the method returns false and c is
-     *    called asyncronously with a value of 0 once all transactions
+     *    called asynchronously with a value of 0 once all transactions
      *    queued on this collection prior to the call have been applied
      *    and committed.
      */
@@ -269,7 +269,7 @@ public:
    *   sobject_encoding detects an older/simpler version of oid
    *   present in pre-bobtail versions of ceph.  use_pool_override
    *   also detects a situation where the pool of an oid can be
-   *   overriden for legacy operations/buffers.  For non-legacy
+   *   overridden for legacy operations/buffers.  For non-legacy
    *   implementations of ObjectStore, neither of these fields are
    *   relevant.
    *
@@ -298,7 +298,7 @@ public:
    * applies independently to each transaction element. For example,
    * if a transaction contains two mutating elements "create A" and
    * "delete B". And an enumeration operation is performed while this
-   * transaction is pending. It is permissable for ObjectStore to
+   * transaction is pending. It is permissible for ObjectStore to
    * report any of the four possible combinations of the existence of
    * A and B.
    *
@@ -834,7 +834,7 @@ public:
     bool empty() {
       return !data.ops;
     }
-    /// Number of operations in the transation
+    /// Number of operations in the transaction
     int get_num_ops() {
       return data.ops;
     }
index f5b2967eff683659b2eb572f8697a83919a18dd1..6c15953dd2da0d4cfcbca678eaaa4f411fe58c7a 100644 (file)
@@ -1959,7 +1959,7 @@ private:
   uint64_t osd_memory_target = 0;   ///< OSD memory target when autotuning cache
   uint64_t osd_memory_base = 0;     ///< OSD base memory when autotuning cache
   double osd_memory_expected_fragmentation = 0; ///< expected memory fragmentation
-  uint64_t osd_memory_cache_min = 0; ///< Min memory to assign when autotuning cahce
+  uint64_t osd_memory_cache_min = 0; ///< Min memory to assign when autotuning cache
   double osd_memory_cache_resize_interval = 0; ///< Time to wait between cache resizing 
   std::mutex vstatfs_lock;
   volatile_statfs vstatfs;
@@ -2899,7 +2899,7 @@ public:
                         const coll_t& cid, const ghobject_t& oid) {
       ceph_assert(granularity); // initialized
       
-      // can't call this func after filter_out has been apllied
+      // can't call this func after filter_out has been applied
       ceph_assert(!was_filtered_out);
       if (!len) {
        return;
index 2b4ee52797d7514d617eb7d4beac2649ac7e37d0..043f11e9c3e225a294726376f9abadf35025f8c7 100644 (file)
@@ -146,7 +146,7 @@ struct bluefs_transaction_t {
     OP_NONE = 0,
     OP_INIT,        ///< initial (empty) file system marker
     OP_ALLOC_ADD,   ///< add extent to available block storage (extent)
-    OP_ALLOC_RM,    ///< remove extent from availabe block storage (extent)
+    OP_ALLOC_RM,    ///< remove extent from available block storage (extent)
     OP_DIR_LINK,    ///< (re)set a dir entry (dirname, filename, ino)
     OP_DIR_UNLINK,  ///< remove a dir entry (dirname, filename)
     OP_DIR_CREATE,  ///< create a dir (dirname)
index 6177b6620ce089b29c6f1e9538b71dfbfa618524..eb43e47dc53080086ddb958eec7d9bef8bfbfb37 100644 (file)
@@ -109,8 +109,8 @@ protected:
   /**
    * Cleanup before replaying journal
    *
-   * Index implemenations may need to perform compound operations
-   * which may leave the collection unstable if interupted.  cleanup
+   * Index implementations may need to perform compound operations
+   * which may leave the collection unstable if interrupted.  cleanup
    * is called on mount to allow the CollectionIndex implementation
    * to stabilize.
    *
index badfbb7ab14ca7f2b8952f6c6abee45d4cff66c2..45745ea2e6ffed65ca146aee9880768cf564f854 100644 (file)
@@ -497,7 +497,7 @@ private:
   /**
    * Generate new header for c oid with new seq number
    *
-   * Has the side effect of syncronously saving the new DBObjectMap state
+   * Has the side effect of synchronously saving the new DBObjectMap state
    */
   Header _generate_new_header(const ghobject_t &oid, Header parent);
   Header generate_new_header(const ghobject_t &oid, Header parent) {
index 6e076f77d4f0eec20bd3aa83f94d8acd6a43a5c5..7e34d155996004b4d33bae646a151fe36fb13618 100644 (file)
@@ -167,8 +167,8 @@ public:
     CephContext* cct,
     coll_t collection,     ///< [in] Collection
     const char *base_path, ///< [in] Path to the index root.
-    int merge_at,          ///< [in] Merge threshhold.
-    int split_multiple,           ///< [in] Split threshhold.
+    int merge_at,          ///< [in] Merge threshold.
+    int split_multiple,           ///< [in] Split threshold.
     uint32_t index_version,///< [in] Index version
     double retry_probability=0) ///< [in] retry probability
     : LFNIndex(cct, collection, base_path, index_version, retry_probability),
index e56ed0f8daf1d08551423eac5578cb7a83ba35fd..19cd29264dd97d3a5260f5afeeb8420d2d69bd07 100644 (file)
@@ -41,7 +41,7 @@ struct Index {
  * Encapsulates mutual exclusion for CollectionIndexes.
  *
  * Allowing a modification (removal or addition of an object) to occur
- * while a read is occuring (lookup of an object's path and use of
+ * while a read is occurring (lookup of an object's path and use of
  * that path) may result in the path becoming invalid.  Thus, during
  * the lifetime of a CollectionIndex object and any paths returned
  * by it, no other concurrent accesses may be allowed.
index 8eab3c0d3dac40cbba836e38b64e27e1198dbf3f..149ed10f174a8cbafbe67e0f289b0c6ff4f6b8e9 100644 (file)
  *
  * User must call created when an object is created.
  *
- * Syncronization: Calling code must ensure that there are no object
+ * Synchronization: Calling code must ensure that there are no object
  * creations or deletions during the lifetime of a Path object (except
  * of an object at that path).
  *
- * Unless otherwise noted, methods which return an int return 0 on sucess
+ * Unless otherwise noted, methods which return an int return 0 on success
  * and a negative error code on failure.
  */
 #define WRAP_RETRY(x) {                                \
@@ -312,7 +312,7 @@ protected:
   /**
    * Moves contents of from into to.
    *
-   * Invalidates mangled names in to.  If interupted, all objects will be
+   * Invalidates mangled names in to.  If interrupted, all objects will be
    * present in to before objects are removed from from.  Ignores EEXIST
    * while linking into to.
    * @return Error Code, 0 on success
@@ -409,7 +409,7 @@ protected:
     bufferlist &attr_value     ///< [in] Value to save.
     );
 
-  /// Read into attr_value atribute attr_name on path.
+  /// Read into attr_value attribute attr_name on path.
   int get_attr_path(
     const vector<string> &path, ///< [in] Path to read.
     const string &attr_name,   ///< [in] Attribute to read.
@@ -436,7 +436,7 @@ private:
   }
 
   /**
-   * Gets the filename corresponsing to oid in path.
+   * Gets the filename corresponding to oid in path.
    *
    * @param [in] path Path in which to get filename for oid.
    * @param [in] oid Object for which to get filename.
@@ -518,19 +518,19 @@ private:
   int lfn_parse_object_name_keyless(
     const string &long_name, ///< [in] Name to parse
     ghobject_t *out         ///< [out] Resulting Object
-    ); ///< @return True if successfull, False otherwise.
+    ); ///< @return True if successful, False otherwise.
 
   /// Parse object name
   int lfn_parse_object_name_poolless(
     const string &long_name, ///< [in] Name to parse
     ghobject_t *out         ///< [out] Resulting Object
-    ); ///< @return True if successfull, False otherwise.
+    ); ///< @return True if successful, False otherwise.
 
   /// Parse object name
   int lfn_parse_object_name(
     const string &long_name, ///< [in] Name to parse
     ghobject_t *out         ///< [out] Resulting Object
-    ); ///< @return True if successfull, False otherwise.
+    ); ///< @return True if successful, False otherwise.
 
   /// Checks whether short_name is a hashed filename.
   bool lfn_is_hashed_filename(
index efae118fd7e14d3e31d9cb7a872187079bea9fd3..abaaddb5afad8468c496f5104957527d5fa89813 100644 (file)
@@ -452,7 +452,7 @@ public:
       new_erasure_code_profiles[name] = profile;
     }
 
-    /// propage update pools' snap metadata to any of their tiers
+    /// propagate update pools' snap metadata to any of their tiers
     int propagate_snaps_to_tiers(CephContext *cct, const OSDMap &base);
 
     /// filter out osds with any pending state changing