summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-07-16 17:03:17 +0300
committerAmar Tumballi <amarts@redhat.com>2018-07-22 14:40:16 +0000
commit621138ce763eda8270d0a4f6d7209fd50ada8787 (patch)
tree7299759993f6e9f7f34dad95fc8d8cd6ffc1b2fd /xlators/protocol
parentc0e76377d0fc47aa66f35ea70a4793731ebbd40c (diff)
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 <ykaul@redhat.com>
Diffstat (limited to 'xlators/protocol')
-rw-r--r--xlators/protocol/auth/addr/src/addr.c2
-rw-r--r--xlators/protocol/client/src/client-handshake.c2
-rw-r--r--xlators/protocol/server/src/authenticate.c2
-rw-r--r--xlators/protocol/server/src/server-helpers.c4
-rw-r--r--xlators/protocol/server/src/server-rpc-fops.c2
-rw-r--r--xlators/protocol/server/src/server-rpc-fops_v2.c4
-rw-r--r--xlators/protocol/server/src/server.c4
7 files changed, 10 insertions, 10 deletions
diff --git a/xlators/protocol/auth/addr/src/addr.c b/xlators/protocol/auth/addr/src/addr.c
index cc58973..88deb49 100644
--- a/xlators/protocol/auth/addr/src/addr.c
+++ b/xlators/protocol/auth/addr/src/addr.c
@@ -317,7 +317,7 @@ struct volume_options options[] = {
.tags = {},
/* option_validation_fn validate_fn; */
},
- /* Backword compatibility */
+ /* Backward compatibility */
{ .key = {"auth.ip.*.allow"},
.type = GF_OPTION_TYPE_INTERNET_ADDRESS_LIST,
.default_value = "*",
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c
index 1c1ec5c..0025fb5 100644
--- a/xlators/protocol/client/src/client-handshake.c
+++ b/xlators/protocol/client/src/client-handshake.c
@@ -1265,7 +1265,7 @@ client_setvolume (xlator_t *this, struct rpc_clnt *rpc)
* Connection-id should always be unique so that server never gets to
* reuse the previous connection resources so it cleans up the resources
* on every disconnect. Otherwise it may lead to stale resources, i.e.
- * leaked file desciptors, inode/entry locks
+ * leaked file descriptors, inode/entry locks
*/
snprintf (counter_str, sizeof (counter_str),
diff --git a/xlators/protocol/server/src/authenticate.c b/xlators/protocol/server/src/authenticate.c
index c000776..5163d46 100644
--- a/xlators/protocol/server/src/authenticate.c
+++ b/xlators/protocol/server/src/authenticate.c
@@ -38,7 +38,7 @@ init (dict_t *this, char *key, data_t *value, void *data)
PS_MSG_AUTHENTICATE_ERROR, "AUTHENTICATION MODULE "
"\"IP\" HAS BEEN REPLACED BY \"ADDR\"");
dict_set (this, key, data_from_dynptr (NULL, 0));
- /* TODO: 1.3.x backword compatibility */
+ /* TODO: 1.3.x backward compatibility */
// *error = -1;
// return;
key = "addr";
diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c
index 702856d..f6fb32e 100644
--- a/xlators/protocol/server/src/server-helpers.c
+++ b/xlators/protocol/server/src/server-helpers.c
@@ -486,7 +486,7 @@ get_frame_from_request (rpcsvc_request_t *req)
/* For nfs clients the server processes will be running
within the trusted storage pool machines. So if we
do not do root-squashing for nfs servers, thinking
- that its a trusted client, then root-squashing wont
+ that its a trusted client, then root-squashing won't
work for nfs clients.
*/
if (req->pid == NFS_PID)
@@ -1345,7 +1345,7 @@ auth_set_username_passwd (dict_t *input_params, dict_t *config_params,
gf_msg_debug ("auth/login", 0, "username not found, returning "
"DONT-CARE");
/* For non trusted clients username and password
- will not be there. So dont reject the client.
+ will not be there. So don't reject the client.
*/
ret = 0;
goto out;
diff --git a/xlators/protocol/server/src/server-rpc-fops.c b/xlators/protocol/server/src/server-rpc-fops.c
index 30f2887..915e166 100644
--- a/xlators/protocol/server/src/server-rpc-fops.c
+++ b/xlators/protocol/server/src/server-rpc-fops.c
@@ -146,7 +146,7 @@ server_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
* It also might lead to wrong decisions being
* taken if the future lookups on this inode are
* successful since they are able to find the
- * inode in the inode table (atleast gfid based
+ * inode in the inode table (at least gfid based
* lookups will be successful, if the lookup
* is a soft lookup)
*/
diff --git a/xlators/protocol/server/src/server-rpc-fops_v2.c b/xlators/protocol/server/src/server-rpc-fops_v2.c
index ac6fb86..d1b2a55 100644
--- a/xlators/protocol/server/src/server-rpc-fops_v2.c
+++ b/xlators/protocol/server/src/server-rpc-fops_v2.c
@@ -131,7 +131,7 @@ server4_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
* It also might lead to wrong decisions being
* taken if the future lookups on this inode are
* successful since they are able to find the
- * inode in the inode table (atleast gfid based
+ * inode in the inode table (at least gfid based
* lookups will be successful, if the lookup
* is a soft lookup)
*/
@@ -5645,7 +5645,7 @@ server4_0_icreate (rpcsvc_request_t *req)
state->mode = args.mode;
gf_asprintf (&state->resolve.bname, INODE_PATH_FMT, uuid_utoa (gfid));
- /* parent is an auxillary inode number */
+ /* parent is an auxiliary inode number */
memset (state->resolve.pargfid, 0, sizeof (uuid_t));
state->resolve.pargfid[15] = GF_AUXILLARY_PARGFID;
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c
index 35c14a3..e4a5bda 100644
--- a/xlators/protocol/server/src/server.c
+++ b/xlators/protocol/server/src/server.c
@@ -360,7 +360,7 @@ _check_for_auth_option (dict_t *d, char *k, data_t *v,
goto out;
}
- /* fast fwd thru module type */
+ /* fast fwd through module type */
tail = strchr (tail, '.');
if (!tail)
goto out;
@@ -1146,7 +1146,7 @@ server_init (xlator_t *this)
}
glusterfs3_3_fop_prog.options = this->options;
- /* make sure we register the fop prgram at the head to optimize
+ /* make sure we register the fop program at the head to optimize
* lookup
*/
ret = rpcsvc_program_register (conf->rpc, &glusterfs3_3_fop_prog,