summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd
diff options
context:
space:
mode:
authorManikandan Selvaganesh <mselvaga@redhat.com>2015-02-02 11:57:54 +0530
committerVijay Bellur <vbellur@redhat.com>2015-04-02 03:21:08 -0700
commit1d6cd6bb0f2f5875e8e4ad370cf1ff2c601cbfd4 (patch)
treeee33c0da18965079b2c95de1dfa3c794be7539f7 /xlators/mgmt/glusterd
parent12e603bb9d8bc220eeea01c0ecc8ca63f9df4bc4 (diff)
Xlators : Fixed typos
Change-Id: I948f85cb369206ee8ce8b8cd5e48cae9adb971c9 BUG: 1075417 Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com> Reviewed-on: http://review.gluster.org/9529 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-brick-ops.c2
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-messages.h4
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c2
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-peer-utils.c8
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-rebalance.c4
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c2
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c4
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c2
8 files changed, 14 insertions, 14 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
index fa5e533f135..61e6012056c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
@@ -43,7 +43,7 @@ add_brick_at_right_order (glusterd_brickinfo_t *brickinfo,
/* The complexity of the function is in deciding at which index
to add new brick. Even though it can be defined with a complex
- single formula for all volume, it is seperated out to make it
+ single formula for all volume, it is separated out to make it
more readable */
if (stripe_cnt) {
/* common formula when 'stripe_count' is set */
diff --git a/xlators/mgmt/glusterd/src/glusterd-messages.h b/xlators/mgmt/glusterd/src/glusterd-messages.h
index b4f8585097a..7af73907e49 100644
--- a/xlators/mgmt/glusterd/src/glusterd-messages.h
+++ b/xlators/mgmt/glusterd/src/glusterd-messages.h
@@ -136,14 +136,14 @@
/*!
* @messageid 106011
- * @diagnosis A volume quota-conf version mismatch occured while adding a peer
+ * @diagnosis A volume quota-conf version mismatch occurred while adding a peer
* @recommendedaction None
*/
#define GD_MSG_QUOTA_CONFIG_VERS_MISMATCH (GLUSTERD_COMP_BASE + 11)
/*!
* @messageid 106012
- * @diagnosis A quota-conf checksum mismatch occured while adding a peer
+ * @diagnosis A quota-conf checksum mismatch occurred while adding a peer
* @recommendedaction Check for which node the checksum mismatch happens
* and delete the volume configuration files from it and
* restart glusterd
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index c994d762664..3e88a131f82 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -2010,7 +2010,7 @@ glusterd_op_set_volume (dict_t *dict, char **errstr)
goto out;
}
- // TODO: Remove this once v3.3 compatability is not required
+ /* TODO: Remove this once v3.3 compatibility is not required */
check_op_version = dict_get_str_boolean (dict, "check-op-version",
_gf_false);
diff --git a/xlators/mgmt/glusterd/src/glusterd-peer-utils.c b/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
index 2d555a83193..046142b36df 100644
--- a/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
@@ -250,7 +250,7 @@ glusterd_peerinfo_find (uuid_t uuid, const char *hostname)
* values using the passed parameters.
* @hostname is added as the first entry in peerinfo->hostnames list and also
* set to peerinfo->hostname.
- * It returns a pointer to peerinfo object if successfull and returns NULL
+ * It returns a pointer to peerinfo object if successful and returns NULL
* otherwise. The caller should take care of freeing the created peerinfo
* object.
*/
@@ -510,7 +510,7 @@ out:
}
/* gd_add_friend_to_dict() adds details of @friend into @dict with the given
- * @prefix. All the parameters are compulsary.
+ * @prefix. All the parameters are compulsory.
*
* The complete address list is added to the dict only if the cluster op-version
* is >= GD_OP_VERSION_3_6_0
@@ -545,7 +545,7 @@ gd_add_friend_to_dict (glusterd_peerinfo_t *friend, dict_t *dict,
}
/* Setting the first hostname from the list with this key for backward
- * compatability
+ * compatibility
*/
memset (key, 0, sizeof (key));
snprintf (key, sizeof (key), "%s.hostname", prefix);
@@ -707,7 +707,7 @@ out:
/* gd_update_peerinfo_from_dict will update the hostnames for @peerinfo from
* peer details with @prefix in @dict.
- * Returns 0 on sucess and -1 on failure.
+ * Returns 0 on success and -1 on failure.
*/
int
gd_update_peerinfo_from_dict (glusterd_peerinfo_t *peerinfo, dict_t *dict,
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
index 0d66571300f..5a46410cf1d 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -351,7 +351,7 @@ glusterd_rebalance_rpc_create (glusterd_volinfo_t *volinfo,
*/
if (reconnect) {
ret = sys_stat (sockfile, &buf);
- /* TODO: Remove this once we don't need backward compatability
+ /* TODO: Remove this once we don't need backward compatibility
* with the older path
*/
if (ret && (errno == ENOENT)) {
@@ -845,7 +845,7 @@ glusterd_defrag_event_notify_handle (dict_t *dict)
volname = volname_ptr + 1;
} else {
gf_log (this->name, GF_LOG_ERROR,
- "volname recieved (%s) is not prefixed with rebalance.",
+ "volname received (%s) is not prefixed with rebalance.",
volname);
ret = -1;
goto out;
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c
index fb3fad243aa..f27bb5d6e85 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c
@@ -733,7 +733,7 @@ out:
/* Imports the snapshot details of a brick if required and available
*
- * Snapshot details will be imported only if the cluster op-verison is >= 4
+ * Snapshot details will be imported only if the cluster op-version is >= 4
*/
int
gd_import_new_brick_snap_details (dict_t *dict, char *prefix,
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
index bcee5fbd862..a596d3eb30c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
@@ -374,7 +374,7 @@ snap_max_limits_display_commit (dict_t *rsp_dict, char *volname,
opt_hard_max);
if (ret) {
snprintf (err_str, PATH_MAX,
- "Failed to set %s in reponse dictionary",
+ "Failed to set %s in response dictionary",
GLUSTERD_STORE_KEY_SNAP_MAX_HARD_LIMIT);
goto out;
}
@@ -8384,7 +8384,7 @@ glusterd_handle_snapshot_fn (rpcsvc_request_t *req)
}
break;
default:
- gf_log (this->name, GF_LOG_ERROR, "Unkown snapshot request "
+ gf_log (this->name, GF_LOG_ERROR, "Unknown snapshot request "
"type (%d)", type);
ret = -1; /* Failure */
}
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index c3d651e559b..ce8bf1b203f 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -3535,7 +3535,7 @@ glusterd_store_retrieve_snap (char *snapname)
goto out;
}
- /* TODO: list_add_order can do 'N-square' comparisions and
+ /* TODO: list_add_order can do 'N-square' comparisons and
is not efficient. Find a better solution to store the snap
in order */
glusterd_list_add_order (&snap->snap_list, &priv->snapshots,