From a9f9963ce7c79468264c54959c74037da1ac41af Mon Sep 17 00:00:00 2001 From: Jeff Olivier Date: Tue, 28 May 2024 06:42:08 -0600 Subject: [PATCH] Fix codespell errors after tool update Required-githooks: true Change-Id: I56dd48c9f447034be3cd8891a9efac4fc07939aa Signed-off-by: Jeff Olivier --- ci/codespell.ignores | 3 +++ src/bio/bio_wal.c | 2 +- src/client/array/dc_array.c | 2 +- src/client/dfuse/ops/readdir.c | 2 +- src/control/security/testdata/certs/source.txt | 2 +- src/engine/module.c | 2 +- src/include/daos_api.h | 4 ++-- src/include/daos_errno.h | 2 +- src/include/daos_srv/bio.h | 2 +- src/include/daos_srv/dtx_srv.h | 2 +- src/object/srv_obj.c | 2 +- src/placement/tests/jump_map_place_obj.c | 2 +- src/tests/ftest/util/pool_security_test_base.py | 2 +- src/tests/suite/daos_base_tx.c | 2 +- src/vos/vos_layout.h | 2 +- 15 files changed, 18 insertions(+), 15 deletions(-) diff --git a/ci/codespell.ignores b/ci/codespell.ignores index 323f24b364b7..484e88d6f16e 100644 --- a/ci/codespell.ignores +++ b/ci/codespell.ignores @@ -35,3 +35,6 @@ expres signalling laf cacl +rin +assertin +checkin diff --git a/src/bio/bio_wal.c b/src/bio/bio_wal.c index 5ea94a7918e9..34137c3448fb 100644 --- a/src/bio/bio_wal.c +++ b/src/bio/bio_wal.c @@ -587,7 +587,7 @@ fill_trans_blks(struct bio_meta_context *mc, struct bio_sglist *bsgl, struct ume left = blk_sz - entry_blk.tb_off; /* Current entry block is full, move to next entry block */ if (left < entry_sz) { - /* Zeoring left bytes for csum calculation */ + /* Zeroing left bytes for csum calculation */ if (left > 0) memset(entry_blk.tb_buf + entry_blk.tb_off, 0, left); next_trans_blk(bsgl, &entry_blk); diff --git a/src/client/array/dc_array.c b/src/client/array/dc_array.c index 820bc7bd0cc0..45b8947b04ae 100644 --- a/src/client/array/dc_array.c +++ b/src/client/array/dc_array.c @@ -1647,7 +1647,7 @@ dc_array_io(daos_handle_t array_oh, daos_handle_t th, /* * verify that the dkey is the same as the one we are working on * given the array index, and also compute the number of records - * left in the dkey and the record indexin the dkey. + * left in the dkey and the record indexing the dkey. */ rc = compute_dkey(array, array_idx, &num_records, &record_i, &dkey_val); diff --git a/src/client/dfuse/ops/readdir.c b/src/client/dfuse/ops/readdir.c index 677303ab8e2a..1816e20bff72 100644 --- a/src/client/dfuse/ops/readdir.c +++ b/src/client/dfuse/ops/readdir.c @@ -364,7 +364,7 @@ dfuse_do_readdir(struct dfuse_info *dfuse_info, fuse_req_t req, struct dfuse_obj /* If there is no seekdir but there is valid cache data then use the cache. * * Directory handles may not have up-to-date values for doh_rd_nextc in some cases - * so perform a seek here if necessairy. + * so perform a seek here if necessary. */ struct dfuse_readdir_c *drc; size_t written = 0; diff --git a/src/control/security/testdata/certs/source.txt b/src/control/security/testdata/certs/source.txt index 9bb8e83e091a..dc96fa43affc 100644 --- a/src/control/security/testdata/certs/source.txt +++ b/src/control/security/testdata/certs/source.txt @@ -1 +1 @@ -This tile is here to act as a source file for generating hash and signiture files to test the sign and verify signature functionality. +This tile is here to act as a source file for generating hash and signature files to test the sign and verify signature functionality. diff --git a/src/engine/module.c b/src/engine/module.c index 4ee74235ff52..48e104f77b6e 100644 --- a/src/engine/module.c +++ b/src/engine/module.c @@ -246,7 +246,7 @@ dss_module_init_all(uint64_t *mod_facs) /* * first register global tls accessible to all modules, - * it'll be first initialized and last finialized. + * it'll be first initialized and last finalized. */ dss_register_key(&daos_srv_modkey); diff --git a/src/include/daos_api.h b/src/include/daos_api.h index fa7df7c3aff5..a19367682445 100644 --- a/src/include/daos_api.h +++ b/src/include/daos_api.h @@ -94,7 +94,7 @@ daos_tx_commit(daos_handle_t th, daos_event_t *ev); * Create a read-only transaction from a snapshot. This does not create the * snapshot, but only a read transaction to be able to read from a snapshot * created with daos_cont_create_snap. If the user passes an epoch that is not - * snapshoted, or the snapshot was deleted, reads using that transaction may + * snapshotted, or the snapshot was deleted, reads using that transaction may * get undefined results. * * \param[in] coh Container handle. @@ -188,7 +188,7 @@ daos_anchor_init(daos_anchor_t *anchor, __attribute__((unused)) unsigned int opt * Finalizie an iteratror anchor, free resources allocated * during the iteration. * - * \param[in] anchor Anchor to be finialized + * \param[in] anchor Anchor to be finalized */ static inline void daos_anchor_fini(__attribute__((unused)) daos_anchor_t *anchor) diff --git a/src/include/daos_errno.h b/src/include/daos_errno.h index f7305f365342..33815b2b53a6 100644 --- a/src/include/daos_errno.h +++ b/src/include/daos_errno.h @@ -235,7 +235,7 @@ extern "C" { ACTION(DER_FETCH_AGAIN, (DER_ERR_DAOS_BASE + 32), Fetch again) \ /** Hit uncertain DTX, may need to try with other replica. */ \ ACTION(DER_TX_UNCERTAIN, (DER_ERR_DAOS_BASE + 33), TX status is uncertain) \ - /** Communicatin issue with agent. */ \ + /** Communication issue with agent. */ \ ACTION(DER_AGENT_COMM, (DER_ERR_DAOS_BASE + 34), Agent communication error) \ /** ID mismatch */ \ ACTION(DER_ID_MISMATCH, (DER_ERR_DAOS_BASE + 35), ID mismatch) \ diff --git a/src/include/daos_srv/bio.h b/src/include/daos_srv/bio.h index 9605579e4d6f..c71650ea209b 100644 --- a/src/include/daos_srv/bio.h +++ b/src/include/daos_srv/bio.h @@ -427,7 +427,7 @@ int bio_nvme_init(const char *nvme_conf, int numa_node, unsigned int mem_size, unsigned int hugepage_size, unsigned int tgt_nr, bool bypass); /** - * Global NVMe finilization. + * Global NVMe finalization. * * \return N/A */ diff --git a/src/include/daos_srv/dtx_srv.h b/src/include/daos_srv/dtx_srv.h index 6d0936a5b552..7e3b1a679468 100644 --- a/src/include/daos_srv/dtx_srv.h +++ b/src/include/daos_srv/dtx_srv.h @@ -96,7 +96,7 @@ struct dtx_handle { /* The count the DTXs in the dth_dti_cos array. */ uint32_t dth_dti_cos_count; - /* The array of the DTXs for Commit on Share (conflcit). */ + /* The array of the DTXs for Commit on Share (conflict). */ struct dtx_id *dth_dti_cos; /** Pointer to the DTX entry in DRAM. */ void *dth_ent; diff --git a/src/object/srv_obj.c b/src/object/srv_obj.c index bae217ed12ca..8b8368c6bc50 100644 --- a/src/object/srv_obj.c +++ b/src/object/srv_obj.c @@ -2232,7 +2232,7 @@ obj_ioc_begin_lite(uint32_t rpc_map_ver, uuid_t pool_uuid, * 2. The current replica was NOT the old leader if * with the old pool map version. But it becomes * the new leader with the new pool map version. - * In the subsequent modificaiton, it may hit + * In the subsequent modification, it may hit * some 'prepared' DTX when make availability * check, it will return -DER_INPROGRESS that * will cause client to retry. It is possible diff --git a/src/placement/tests/jump_map_place_obj.c b/src/placement/tests/jump_map_place_obj.c index 6d40310324c6..4006f00a85df 100644 --- a/src/placement/tests/jump_map_place_obj.c +++ b/src/placement/tests/jump_map_place_obj.c @@ -1188,7 +1188,7 @@ one_is_being_reintegrated(void **state) * so find_reint() and find_addition() might both find * some candidates if there are UP targets in the pool map, * no matter these UP targets are from NEW or DOWNOUT. - * But reintegration and extening will never happen at the + * But reintegration and extending will never happen at the * same time, so it is ok for now. To satisfy the test, * let's set both reint and new number as 1 for now. */ diff --git a/src/tests/ftest/util/pool_security_test_base.py b/src/tests/ftest/util/pool_security_test_base.py index c861248f17ae..ef1eff166cac 100644 --- a/src/tests/ftest/util/pool_security_test_base.py +++ b/src/tests/ftest/util/pool_security_test_base.py @@ -41,7 +41,7 @@ def modify_acl_file_entry(self, file_name, entry, new_entry): line = line.split("\n")[0] if line == entry: line = new_entry - self.log.info("==>replaceing \n %s with\n %s", entry, new_entry) + self.log.info("==>replacing \n %s with\n %s", entry, new_entry) new_permissions = new_permissions + line + "\n" if entry is None: new_permissions = new_permissions + new_entry + "\n" diff --git a/src/tests/suite/daos_base_tx.c b/src/tests/suite/daos_base_tx.c index 7800ed7d2c98..198b04322443 100644 --- a/src/tests/suite/daos_base_tx.c +++ b/src/tests/suite/daos_base_tx.c @@ -294,7 +294,7 @@ dtx_fetch_committable(void **state, bool punch) /* Reset fail_loc, repeat fetch from any replica. If without specifying * the replica, and if fetch from non-leader hits non-committed DTX, it - * will retry with leader, finially, the expected data will be returned + * will retry with leader, finally, the expected data will be returned * from the leader replica. */ daos_fail_loc_set(0); diff --git a/src/vos/vos_layout.h b/src/vos/vos_layout.h index 402561c72423..21bebbe36c5f 100644 --- a/src/vos/vos_layout.h +++ b/src/vos/vos_layout.h @@ -82,7 +82,7 @@ enum vos_gc_type { /** Lowest supported durable format version */ #define POOL_DF_VER_1 23 -/** Individual version specific featuers are assigned to a release specific durable +/** Individual version specific features are assigned to a release specific durable * format version number. This allows us to add multiple features in a release cycle * while keeping checks related to the feature rather than the more ambiguous version * number. Each new feature should be assigned to the latest VOS durable format.