From 621138ce763eda8270d0a4f6d7209fd50ada8787 Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Mon, 16 Jul 2018 17:03:17 +0300 Subject: All: run codespell on the code and fix issues. Please review, it's not always just the comments that were fixed. I've had to revert of course all calls to creat() that were changed to create() ... Only compile-tested! Change-Id: I7d02e82d9766e272a7fd9cc68e51901d69e5aab5 updates: bz#1193929 Signed-off-by: Yaniv Kaul --- xlators/cluster/ec/src/ec-code.c | 2 +- xlators/cluster/ec/src/ec-common.c | 2 +- xlators/cluster/ec/src/ec-common.h | 2 +- xlators/cluster/ec/src/ec-heal.c | 2 +- xlators/cluster/ec/src/ec-helpers.h | 2 +- xlators/cluster/ec/src/ec-inode-write.c | 2 +- xlators/cluster/ec/src/ec-locks.c | 2 +- xlators/cluster/ec/src/ec-types.h | 2 +- xlators/cluster/ec/src/ec.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) (limited to 'xlators/cluster/ec/src') diff --git a/xlators/cluster/ec/src/ec-code.c b/xlators/cluster/ec/src/ec-code.c index 44957dd788f..2cdd5bebe11 100644 --- a/xlators/cluster/ec/src/ec-code.c +++ b/xlators/cluster/ec/src/ec-code.c @@ -479,7 +479,7 @@ ec_code_space_create(ec_code_t *code, size_t size) done_close: /* If everything has succeeded, we already have the memory areas * mapped. We don't need the file descriptor anymore because the - * backend storage will be there until the mmaped regions are + * backend storage will be there until the mmap()'d regions are * unmapped. */ sys_close(fd); done: diff --git a/xlators/cluster/ec/src/ec-common.c b/xlators/cluster/ec/src/ec-common.c index e3e34811395..4776b697a8b 100644 --- a/xlators/cluster/ec/src/ec-common.c +++ b/xlators/cluster/ec/src/ec-common.c @@ -1631,7 +1631,7 @@ int32_t ec_get_real_size_cbk(call_frame_t *frame, void *cookie, xlator_t *this, } /* This function is used to get the trusted.ec.size xattr from a file when - * no lock is needed on the inode. This is only required to maintan iatt + * no lock is needed on the inode. This is only required to maintain iatt * structs on fops that manipulate directory entries but do not operate * directly on the inode, like link, rename, ... * diff --git a/xlators/cluster/ec/src/ec-common.h b/xlators/cluster/ec/src/ec-common.h index 372be52470c..a92752952ad 100644 --- a/xlators/cluster/ec/src/ec-common.h +++ b/xlators/cluster/ec/src/ec-common.h @@ -41,7 +41,7 @@ enum _ec_xattrop_flags { }; /* We keep two sets of flags. One to determine what's really providing the - * currect xattrop and the other to know what the parent fop of the xattrop + * current xattrop and the other to know what the parent fop of the xattrop * needs to proceed. It might happen that a fop needs some information that * is being already requested by a previous fop. The two sets are stored * contiguously. */ diff --git a/xlators/cluster/ec/src/ec-heal.c b/xlators/cluster/ec/src/ec-heal.c index 2ff713b7bbd..6b4c45fa370 100644 --- a/xlators/cluster/ec/src/ec-heal.c +++ b/xlators/cluster/ec/src/ec-heal.c @@ -2933,7 +2933,7 @@ ec_need_data_heal (ec_t *ec, inode_t *inode, default_args_cbk_t *replies, size = alloca0 (ec->nodes * sizeof (*size)); /* When dd is going on and heal info is called there is a very good - * chance for on disk sizes to mismatch eventhough nothing is wrong + * chance for on disk sizes to mismatch even though nothing is wrong * we don't need ondisk size check there. But if the file is either * self-locked or the caller wants a thorough check then make sure to * perform on disk check also. */ diff --git a/xlators/cluster/ec/src/ec-helpers.h b/xlators/cluster/ec/src/ec-helpers.h index 71b8978abf8..b548f802361 100644 --- a/xlators/cluster/ec/src/ec-helpers.h +++ b/xlators/cluster/ec/src/ec-helpers.h @@ -96,7 +96,7 @@ ec_adjust_size_up(ec_t *ec, uint64_t *value, gf_boolean_t scale) tmp += ec->fragment_size; } else { tmp += ec->stripe_size; - /* If no scaling is requested there's a posibility of + /* If no scaling is requested there's a possibility of * overflow. */ if (tmp < ec->stripe_size) { tmp = UINT64_MAX; diff --git a/xlators/cluster/ec/src/ec-inode-write.c b/xlators/cluster/ec/src/ec-inode-write.c index bf45a867971..c9fbd3cf7df 100644 --- a/xlators/cluster/ec/src/ec-inode-write.c +++ b/xlators/cluster/ec/src/ec-inode-write.c @@ -1167,7 +1167,7 @@ void ec_discard_adjust_offset_size(ec_fop_data_t *fop) ec_t *ec = fop->xl->private; fop->user_size = fop->size; - /* If discard length covers atleast a fragment on brick, we will + /* If discard length covers at least a fragment on brick, we will * perform discard operation(when fop->size is non-zero) else we just * write zeros. */ diff --git a/xlators/cluster/ec/src/ec-locks.c b/xlators/cluster/ec/src/ec-locks.c index 996035de90b..d8ad7721f53 100644 --- a/xlators/cluster/ec/src/ec-locks.c +++ b/xlators/cluster/ec/src/ec-locks.c @@ -43,7 +43,7 @@ int32_t ec_lock_check(ec_fop_data_t *fop, uintptr_t *mask) case EC_LOCK_MODE_NONE: case EC_LOCK_MODE_ALL: /* Goal is to treat non-blocking lock as failure - * even if there is a signle EAGAIN*/ + * even if there is a single EAGAIN*/ notlocked |= ans->mask; break; } diff --git a/xlators/cluster/ec/src/ec-types.h b/xlators/cluster/ec/src/ec-types.h index 15b4c77abfe..2724da6415f 100644 --- a/xlators/cluster/ec/src/ec-types.h +++ b/xlators/cluster/ec/src/ec-types.h @@ -323,7 +323,7 @@ struct _ec_fop_data { int32_t id; /* ID of the file operation */ int32_t refs; int32_t state; - int32_t minimum; /* Mininum number of successful + int32_t minimum; /* Minimum number of successful operation required to conclude a fop as successful */ int32_t expected; diff --git a/xlators/cluster/ec/src/ec.c b/xlators/cluster/ec/src/ec.c index cb995646959..a82305104c5 100644 --- a/xlators/cluster/ec/src/ec.c +++ b/xlators/cluster/ec/src/ec.c @@ -1543,7 +1543,7 @@ struct volume_options options[] = .op_version = { GD_OP_VERSION_4_0_0 }, .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC, .tags = { "disperse", "locks", "timeout" }, - .description = "It's equivalent ot eager-lock-timeout option but for " + .description = "It's equivalent to eager-lock-timeout option but for " "non regular files." }, { .key = {"background-heals"}, -- cgit