summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-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 fa5e533..61e6012 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 b4f8585..7af7390 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 c994d76..3e88a13 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 2d555a8..046142b 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 0d66571..5a46410 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 fb3fad2..f27bb5d 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 bcee5fb..a596d3e 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 c3d651e..ce8bf1b 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,