core: assorted typos and spelling mistakes reported by Debian lintian

Also missing bang (!) in #!/bin/bash in shell scripts.

Change-Id: I567a4be8f0f31f6285550f243fe802895f6bc43b
BUG: 1336793
Reported-by: Patrick Matthäi <pmatthaei@debian.org>
Signed-off-by: Kaleb S KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/14398
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
Kaleb S KEITHLEY 2016-05-17 09:22:43 -04:00 committed by Niels de Vos
parent 5a4f4a9456
commit 138935bf8d
20 changed files with 38 additions and 37 deletions

View File

@ -2448,7 +2448,7 @@ parse_ssh_port (const char **words, int wordcount, dict_t *dict,
if (errno == ERANGE || errno == EINVAL || limit <= 0
|| strcmp (end_ptr, "") != 0) {
ret = -1;
cli_err ("Please enter an interger value for ssh_port ");
cli_err ("Please enter an integer value for ssh_port ");
goto out;
}

View File

@ -4591,7 +4591,7 @@ gf_cli_attach_tier (call_frame_t *frame, xlator_t *this,
notify_cli:
if (ret) {
cli_out ("Failed to run tier start. Please execute tier start "
"command explictly");
"command explicitly");
cli_out ("Usage : gluster volume rebalance <volname> tier "
"start");
}

View File

@ -5618,7 +5618,7 @@ cli_xml_snapshot_config (xmlTextWriterPtr writer, xmlDocPtr doc, dict_t *dict)
}
break;
default:
gf_log ("cli", GF_LOG_ERROR, "Uknown config command :%d",
gf_log ("cli", GF_LOG_ERROR, "Unknown config command :%d",
config_command);
ret = -1;
goto out;

View File

@ -103,7 +103,7 @@ Set entry timeout to SECONDS in fuse kernel module [default: 1]
Enable/Disable direct-io mode in fuse module [default: enable]
.TP
\fB\-\-resolve-gids\fR
Resolve all auxilary groups in fuse translator (max 32 otherwise)
Resolve all auxiliary groups in fuse translator (max 32 otherwise)
.SS "Miscellaneous Options"
.PP

View File

@ -80,7 +80,7 @@ Set entry timeout to SECONDS in fuse kernel module [default: 1]
Set fuse module's background queue length to N [default: 64]
.TP
\fBgid\-timeout=\fRSECONDS
Set auxilary group list timeout to SECONDS for fuse translator [default: 0]
Set auxiliary group list timeout to SECONDS for fuse translator [default: 0]
.TP
\fBnegative\-timeout=\fRSECONDS
Set negative timeout to SECONDS in fuse kernel module [default: 0]
@ -99,7 +99,7 @@ Set fuse module's congestion threshold to N [default: 48]
\fBbackup\-volfile\-servers=\fRSERVERLIST
Provide list of backup volfile servers in the following format [default: None]
\fB$ mount -t glusterfs -obackup-volfile-servers=<server2>:\fR
\fB$ mount \-t glusterfs \-obackup\-volfile\-servers=<server2>:\fR
\fB <server3>:...:<serverN> <server1>:/<volname> <mount_point>\fR
.TP
@ -107,7 +107,7 @@ Provide list of backup volfile servers in the following format [default: None]
\fBbackupvolfile\-server=\fRSERVER
Provide list of backup volfile servers in the following format [default: None]
\fB $ mount -t glusterfs -obackupvolfile-server=<server2>
\fB $ mount \-t glusterfs \-obackupvolfile\-server=<server2>
\fB <server1>:/<volname> <mount_point>
.TP

View File

@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash
#This script is called by glusterd when the user
#tries to export a volume via NFS-Ganesha.

View File

@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash
# Try loading the config from any of the distro
# specific configuration locations

View File

@ -1,4 +1,5 @@
#/bin/bash
#!/bin/bash
PROGNAME="Sganesha-reset"
OPTSPEC="volname:,gd-workdir:"
VOL=

View File

@ -159,11 +159,11 @@ def _get_args():
parser_useradd.add_argument('username', help="Username", type=str)
parser_useradd.add_argument('volumes', type=str, default='',
help="Volumes list. ',' seperated")
help="Volumes list. ',' separated")
parser_volumedel.add_argument('username', help="Username", type=str)
parser_volumedel.add_argument('volumes', type=str, default='',
help="Volumes list. ',' seperated")
help="Volumes list. ',' separated")
parser_userdel.add_argument('username', help="Username", type=str)

View File

@ -198,10 +198,10 @@ static struct argp_option gf_options[] = {
"Set attribute timeout to SECONDS for inodes in fuse kernel module "
"[default: 1]"},
{"gid-timeout", ARGP_GID_TIMEOUT_KEY, "SECONDS", 0,
"Set auxilary group list timeout to SECONDS for fuse translator "
"Set auxiliary group list timeout to SECONDS for fuse translator "
"[default: 300]"},
{"resolve-gids", ARGP_RESOLVE_GIDS_KEY, 0, 0,
"Resolve all auxilary groups in fuse translator (max 32 otherwise)"},
"Resolve all auxiliary groups in fuse translator (max 32 otherwise)"},
{"background-qlen", ARGP_FUSE_BACKGROUND_QLEN_KEY, "N", 0,
"Set fuse module's background queue length to N "
"[default: 64]"},

View File

@ -446,7 +446,7 @@ fd_lk_insert_and_merge (fd_t *fd, int32_t cmd,
lk_ctx = fd_lk_ctx_ref (fd->lk_ctx);
lk = fd_lk_ctx_node_new (cmd, flock);
gf_msg_debug ("fd-lk", 0, "new lock requrest: owner = %s, fl_type = %s"
gf_msg_debug ("fd-lk", 0, "new lock request: owner = %s, fl_type = %s"
", fs_start = %"PRId64", fs_end = %"PRId64", user_flock:"
" l_type = %s, l_start = %"PRId64", l_len = %"PRId64,
lkowner_utoa (&flock->l_owner),

View File

@ -650,7 +650,7 @@ gf_sqlite3_find_all (void *db_conn, gf_query_callback_t query_callback,
&prep_stmt, 0);
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed to prepare statment %s :"
LG_MSG_PREPARE_FAILED, "Failed to prepare statement %s :"
"%s", query_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
@ -726,7 +726,7 @@ gf_sqlite3_find_recently_changed_files(void *db_conn,
&prep_stmt, 0);
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed to prepare statment %s :"
LG_MSG_PREPARE_FAILED, "Failed to prepare statement %s :"
" %s", query_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
@ -826,7 +826,7 @@ gf_sqlite3_find_unchanged_for_time (void *db_conn,
&prep_stmt, 0);
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed to prepare statment %s :"
LG_MSG_PREPARE_FAILED, "Failed to prepare statement %s :"
" %s", query_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
@ -938,7 +938,7 @@ gf_sqlite3_find_recently_changed_files_freq (void *db_conn,
&prep_stmt, 0);
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed to prepare statment %s :"
LG_MSG_PREPARE_FAILED, "Failed to prepare statement %s :"
" %s", query_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
@ -1099,7 +1099,7 @@ gf_sqlite3_find_unchanged_for_time_freq (void *db_conn,
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed to prepare delete "
"statment %s : %s", query_str,
"statement %s : %s", query_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
goto out;

View File

@ -48,7 +48,7 @@ gf_sql_delete_all (gf_sql_connection_t *sql_conn,
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed preparing delete "
"statment %s : %s", delete_link_str,
"statement %s : %s", delete_link_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
goto out;
@ -88,7 +88,7 @@ gf_sql_delete_all (gf_sql_connection_t *sql_conn,
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed preparing delete "
"statment %s : %s", delete_file_str,
"statement %s : %s", delete_file_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
goto out;
@ -148,7 +148,7 @@ gf_sql_delete_link (gf_sql_connection_t *sql_conn,
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed preparing delete "
"statment %s : %s", delete_str,
"statement %s : %s", delete_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
goto out;
@ -243,7 +243,7 @@ gf_sql_update_link_flags (gf_sql_connection_t *sql_conn,
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed preparing update "
"statment %s : %s", update_str,
"statement %s : %s", update_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
goto out;
@ -345,7 +345,7 @@ gf_sql_insert_link (gf_sql_connection_t *sql_conn,
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED,
"Failed preparing insert "
"statment %s : %s", insert_str,
"statement %s : %s", insert_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
goto out;
@ -459,7 +459,7 @@ gf_sql_update_link (gf_sql_connection_t *sql_conn,
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed preparing insert "
"statment %s : %s", insert_str,
"statement %s : %s", insert_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
goto out;
@ -542,7 +542,7 @@ gf_sql_insert_write_wind_time (gf_sql_connection_t *sql_conn,
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed preparing insert "
"statment %s : %s", insert_str,
"statement %s : %s", insert_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
goto out;
@ -621,7 +621,7 @@ gf_update_time (gf_sql_connection_t *sql_conn,
GF_VALIDATE_OR_GOTO (GFDB_STR_SQLITE3, update_time, out);
/*
* Constructing the prepare statment string.
* Constructing the prepare statement string.
*
* */
/*For write time*/
@ -671,7 +671,7 @@ gf_update_time (gf_sql_connection_t *sql_conn,
if (ret != SQLITE_OK) {
gf_msg (GFDB_STR_SQLITE3, GF_LOG_ERROR, 0,
LG_MSG_PREPARE_FAILED, "Failed preparing insert "
"statment %s : %s", update_str,
"statement %s : %s", update_str,
sqlite3_errmsg (sql_conn->sqlite3_db_conn));
ret = -1;
goto out;

View File

@ -456,7 +456,7 @@ int32_t ec_child_select(ec_fop_data_t * fop)
{
gf_msg (ec->xl->name, GF_LOG_ERROR, 0,
EC_MSG_CHILDS_INSUFFICIENT,
"Insufficient available childs "
"Insufficient available children "
"for this request (have %d, need "
"%d)", num, fop->minimum);

View File

@ -2056,7 +2056,7 @@ init (xlator_t *this)
if (!priv) {
gf_msg (this->name, GF_LOG_ERROR, ENOMEM,
CTR_MSG_CALLOC_FAILED,
"Calloc didnt work!!!");
"Calloc did not work!!!");
goto error;
}

View File

@ -156,7 +156,7 @@ ctr_delete_hard_link (xlator_t *this,
if (!ctr_hard_link) {
gf_msg (this->name, GF_LOG_ERROR, 0,
CTR_MSG_HARDLINK_MISSING_IN_LIST,
"Hard link doesnt exist in the list");
"Hard link doesn't exist in the list");
goto out;
}
@ -195,7 +195,7 @@ ctr_update_hard_link (xlator_t *this,
ctr_hard_link = ctr_search_hard_link_ctx (this, ctr_xlator_ctx,
old_pgfid, old_base_name);
if (!ctr_hard_link) {
gf_msg_trace (this->name, 0, "Hard link doesnt exist"
gf_msg_trace (this->name, 0, "Hard link doesn't exist"
" in the list");
/* Since the hard link is not present in the list
* we add it to the list */

View File

@ -2047,7 +2047,7 @@ glusterd_op_stage_quota (dict_t *dict, char **op_errstr, dict_t *rsp_dict)
if (ret) {
gf_msg (this->name, GF_LOG_ERROR, 0,
GD_MSG_DICT_GET_FAILED,
"Faild to get hard-limit from dict");
"Failed to get hard-limit from dict");
goto out;
}
ret = gf_string2bytesize_int64 (hard_limit_str, &hard_limit);

View File

@ -1104,7 +1104,7 @@ glusterd_defrag_event_notify_handle (dict_t *dict)
} else {
gf_msg (this->name, GF_LOG_ERROR, 0,
GD_MSG_NO_REBALANCE_PFX_IN_VOLNAME,
"volname recieved (%s) is not prefixed with rebalance.",
"volname received (%s) is not prefixed with rebalance.",
volname);
ret = -1;
goto out;

View File

@ -419,7 +419,7 @@ out:
GLUSTERD_STACK_DESTROY (((call_frame_t *)myframe));
/* Attempt to start the state machine. Needed as no state machine could
* be running at time this RPC reply was recieved
* be running at time this RPC reply was received
*/
if (!ret) {
glusterd_friend_sm ();

View File

@ -2745,7 +2745,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
.description = "Its a Change Time Recorder Xlator option to "
"enable recording write heat on metadata of the file. "
"The default is disabled. "
"Metadata is inode atttributes like atime, mtime,"
"Metadata is inode attributes like atime, mtime,"
" permissions etc and "
"extended attributes of a file ."
},