All the typos are in comments or logs.
Signed-off-by: frank zago <fzago@cray.com>
Change-Id: I3af7baa3cda6774b48e5651fd0591b2dade1131e
Reviewed-on: http://review.whamcloud.com/14424
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
29 files changed:
===============================================
OSD - Object storage device. A generic term for a storage device with an
===============================================
OSD - Object storage device. A generic term for a storage device with an
- interface that extends beyond a block-orientated device interface.
+ interface that extends beyond a block-oriented device interface.
OI - Object Index. A table that maps FIDs to inodes. This table must be
regenerated if a file level restore is performed as inodes will change.
OI - Object Index. A table that maps FIDs to inodes. This table must be
regenerated if a file level restore is performed as inodes will change.
LIBCFS_CONDITIONALS
LN_CONDITIONALS
LC_CONDITIONALS
LIBCFS_CONDITIONALS
LN_CONDITIONALS
LC_CONDITIONALS
-# This is the debhelper compatability version to use.
+# This is the debhelper compatibility version to use.
export DH_COMPAT=7
# Module-assistant stuff
export DH_COMPAT=7
# Module-assistant stuff
* Description:
* This functions sets the maximum retransmit counts for SMSG transactions.
* EPs associated with the NIC handle provided will give up retransmitting SMSG
* Description:
* This functions sets the maximum retransmit counts for SMSG transactions.
* EPs associated with the NIC handle provided will give up retransmitting SMSG
- * transactions and return GNI_RC_TRANSACION_ERROR when the retransmit count has
- * been reached.
+ * transactions and return GNI_RC_TRANSACTION_ERROR when the retransmit count
+ * has been reached.
**/
gni_return_t
GNI_SmsgSetMaxRetrans(
**/
gni_return_t
GNI_SmsgSetMaxRetrans(
* Description:
* This functions sets the maximum retransmit counts for SMSG transactions.
* EPs associated with the NIC handle provided will give up retransmitting SMSG
* Description:
* This functions sets the maximum retransmit counts for SMSG transactions.
* EPs associated with the NIC handle provided will give up retransmitting SMSG
- * transactions and return GNI_RC_TRANSACION_ERROR when the retransmit count has
- * been reached.
+ * transactions and return GNI_RC_TRANSACTION_ERROR when the retransmit count
+ * has been reached.
**/
gni_return_t
gni_smsg_set_max_retrans(
**/
gni_return_t
gni_smsg_set_max_retrans(
LASSERT (atomic_read(&conn->ksnc_conn_refcount) > 0);
LASSERT (atomic_read(&conn->ksnc_conn_refcount) > 0);
- /* NB: sched lock NOT held */
- /* SOCKNAL_RX_LNET_HEADER is here for backward compatability */
+ /* NB: sched lock NOT held */
+ /* SOCKNAL_RX_LNET_HEADER is here for backward compatibility */
LASSERT (conn->ksnc_rx_state == SOCKNAL_RX_KSM_HEADER ||
conn->ksnc_rx_state == SOCKNAL_RX_LNET_PAYLOAD ||
conn->ksnc_rx_state == SOCKNAL_RX_LNET_HEADER ||
LASSERT (conn->ksnc_rx_state == SOCKNAL_RX_KSM_HEADER ||
conn->ksnc_rx_state == SOCKNAL_RX_LNET_PAYLOAD ||
conn->ksnc_rx_state == SOCKNAL_RX_LNET_HEADER ||
if (tx->tx_msg.ksm_zc_cookies[0] > tx->tx_msg.ksm_zc_cookies[1]) {
__u64 tmp = 0;
if (tx->tx_msg.ksm_zc_cookies[0] > tx->tx_msg.ksm_zc_cookies[1]) {
__u64 tmp = 0;
- /* two seperated cookies: (a+2, a) or (a+1, a) */
+ /* two separated cookies: (a+2, a) or (a+1, a) */
LASSERT (tx->tx_msg.ksm_zc_cookies[0] -
tx->tx_msg.ksm_zc_cookies[1] <= 2);
LASSERT (tx->tx_msg.ksm_zc_cookies[0] -
tx->tx_msg.ksm_zc_cookies[1] <= 2);
- /* Allocate a seperate piece of memory and copy
+ /* Allocate a separate piece of memory and copy
* into it the string, so we don't have
* a depencency on the tokens string. This way we
* can free the tokens at the end of the function.
* into it the string, so we don't have
* a depencency on the tokens string. This way we
* can free the tokens at the end of the function.
/* Create the Parser object. */
yaml_parser_initialize(&parser);
/* Create the Parser object. */
yaml_parser_initialize(&parser);
- /* file alwyas takes precedence */
+ /* file always takes precedence */
if (yaml_file != NULL) {
/* Set a file input. */
input = fopen(yaml_file, "rb");
if (yaml_file != NULL) {
/* Set a file input. */
input = fopen(yaml_file, "rb");
Severity : enhancement
Bugzilla : 19526
Description: correctly handle big reply message.
Severity : enhancement
Bugzilla : 19526
Description: correctly handle big reply message.
-Details : send LNet event if reply is bigger then buffer and adjust this buffer
+Details : send LNet event if reply is bigger than buffer and adjust this buffer
correctly.
Severity : normal
correctly.
Severity : normal
Bugzilla : 19128
Description: Out or order replies might be lost on replay
Details : In ptlrpc_retain_replayable_request if we cannot find retained
Bugzilla : 19128
Description: Out or order replies might be lost on replay
Details : In ptlrpc_retain_replayable_request if we cannot find retained
- request with tid smaller then one currently being added, add it
+ request with tid smaller than one currently being added, add it
to the start, not end of the list.
--------------------------------------------------------------------------------
to the start, not end of the list.
--------------------------------------------------------------------------------
/* if restore registration failed, no restart,
* we will return -ENODATA */
/* The layout will change after restore, so we need to
/* if restore registration failed, no restart,
* we will return -ENODATA */
/* The layout will change after restore, so we need to
- * block on layout lock hold by the MDT
+ * block on layout lock held by the MDT
* as MDT will not send new layout in lvb (see LU-3124)
* we have to explicitly fetch it, all this will be done
* by ll_layout_refresh()
* as MDT will not send new layout in lvb (see LU-3124)
* we have to explicitly fetch it, all this will be done
* by ll_layout_refresh()
- * Allocate a striping using round-robin algorigthm.
+ * Allocate a striping using round-robin algorithm.
*
* Allocates a new striping using round-robin algorithm. The function refreshes
* all the internal structures (statfs cache, array of available OSTs sorted
*
* Allocates a new striping using round-robin algorithm. The function refreshes
* all the internal structures (statfs cache, array of available OSTs sorted
- * We've successfuly declared (reserved) an object
+ * We've successfully declared (reserved) an object
*/
lod_qos_ost_in_use(env, stripe_idx, ost_idx);
stripe[stripe_idx] = o;
*/
lod_qos_ost_in_use(env, stripe_idx, ost_idx);
stripe[stripe_idx] = o;
- * We've successfuly declared (reserved) an object
+ * We've successfully declared (reserved) an object
*/
lod_qos_ost_in_use(env, stripe_count, ost_idx);
stripe[stripe_count] = o;
*/
lod_qos_ost_in_use(env, stripe_count, ost_idx);
stripe[stripe_count] = o;
- * We've successfuly declared (reserved) an object
+ * We've successfully declared (reserved) an object
*/
lod_qos_ost_in_use(env, stripe_num, ost_idx);
stripe[stripe_num] = o;
*/
lod_qos_ost_in_use(env, stripe_num, ost_idx);
stripe[stripe_num] = o;
INIT_HLIST_NODE(&new_pool->pool_hash);
#ifdef CONFIG_PROC_FS
INIT_HLIST_NODE(&new_pool->pool_hash);
#ifdef CONFIG_PROC_FS
- /* we need this assert seq_file is not implementated for liblustre */
- /* get ref for /proc file */
+ /* get ref for /proc file */
lov_pool_getref(new_pool);
lov_pool_getref(new_pool);
- new_pool->pool_proc_entry = lprocfs_add_simple(lov->lov_pool_proc_entry,
- poolname, new_pool,
- &pool_proc_operations);
- if (IS_ERR(new_pool->pool_proc_entry)) {
- CWARN("Cannot add proc pool entry "LOV_POOLNAMEF"\n", poolname);
- new_pool->pool_proc_entry = NULL;
- lov_pool_putref(new_pool);
- }
- CDEBUG(D_INFO, "pool %p - proc %p\n", new_pool, new_pool->pool_proc_entry);
+ new_pool->pool_proc_entry = lprocfs_add_simple(lov->lov_pool_proc_entry,
+ poolname, new_pool,
+ &pool_proc_operations);
+ if (IS_ERR(new_pool->pool_proc_entry)) {
+ CWARN("Cannot add proc pool entry "LOV_POOLNAMEF"\n", poolname);
+ new_pool->pool_proc_entry = NULL;
+ lov_pool_putref(new_pool);
+ }
+ CDEBUG(D_INFO, "pool %p - proc %p\n",
+ new_pool, new_pool->pool_proc_entry);
#endif
spin_lock(&obd->obd_dev_lock);
#endif
spin_lock(&obd->obd_dev_lock);
/* When the MDT will get the MDS_SWAP_LAYOUTS RPC the
* first thing it will do is to cancel the 2 layout
/* When the MDT will get the MDS_SWAP_LAYOUTS RPC the
* first thing it will do is to cancel the 2 layout
- * locks hold by this client.
+ * locks held by this client.
* So the client must cancel its layout locks on the 2 fids
* So the client must cancel its layout locks on the 2 fids
- * with the request RPC to avoid extra RPC round trips
+ * with the request RPC to avoid extra RPC round trips.
*/
count = mdc_resource_get_unused(exp, &op_data->op_fid1, &cancels,
LCK_EX, MDS_INODELOCK_LAYOUT |
*/
count = mdc_resource_get_unused(exp, &op_data->op_fid1, &cancels,
LCK_EX, MDS_INODELOCK_LAYOUT |
* \param spfid - source parent fid
* \param tname - target name string
* \param sname - source name string
* \param spfid - source parent fid
* \param tname - target name string
* \param sname - source name string
- * \param handle - transacion handle
+ * \param handle - transaction handle
*/
int mdd_changelog_ns_store(const struct lu_env *env,
struct mdd_device *mdd,
*/
int mdd_changelog_ns_store(const struct lu_env *env,
struct mdd_device *mdd,
* If this fails, we must fail the whole transaction; we don't
* want the change to commit without the log entry.
* \param mdd_obj - mdd_object of change
* If this fails, we must fail the whole transaction; we don't
* want the change to commit without the log entry.
* \param mdd_obj - mdd_object of change
- * \param handle - transacion handle
+ * \param handle - transaction handle
*/
int mdd_changelog_data_store(const struct lu_env *env, struct mdd_device *mdd,
enum changelog_rec_type type, int flags,
*/
int mdd_changelog_data_store(const struct lu_env *env, struct mdd_device *mdd,
enum changelog_rec_type type, int flags,
/*
* find a hsm_agent by uuid
/*
* find a hsm_agent by uuid
- * lock cdt_agent_lock needs to be hold by caller
+ * lock cdt_agent_lock needs to be held by caller
* \param cdt [IN] coordinator
* \param uuid [IN] agent UUID
* \retval hsm_agent pointer or NULL if not found
* \param cdt [IN] coordinator
* \param uuid [IN] agent UUID
* \retval hsm_agent pointer or NULL if not found
/**
* find request in the list by cookie or by fid
/**
* find request in the list by cookie or by fid
- * lock cdt_request_lock needs to be hold by caller
+ * lock cdt_request_lock needs to be held by caller
* \param cdt [IN] coordinator
* \param cookie [IN] request cookie
* \param fid [IN] fid
* \param cdt [IN] coordinator
* \param cookie [IN] request cookie
* \param fid [IN] fid
- * <FSNAME><SEPERATOR><TYPE><INDEX>
+ * <FSNAME><SEPARATOR><TYPE><INDEX>
* FSNAME is between 1 and 8 characters (inclusive).
* Excluded characters are '/' and ':'
* FSNAME is between 1 and 8 characters (inclusive).
* Excluded characters are '/' and ':'
- * SEPERATOR is either ':' or '-'
+ * SEPARATOR is either ':' or '-'
* TYPE: "OST", "MDT", etc.
* INDEX: Hex representation of the index
*/
* TYPE: "OST", "MDT", etc.
* INDEX: Hex representation of the index
*/
struct cl_site *site = &ed->ed_site_myself;
int rc;
struct cl_site *site = &ed->ed_site_myself;
int rc;
rc = cl_site_init(site, &ed->ed_cl);
if (rc) {
rc = cl_site_init(site, &ed->ed_cl);
if (rc) {
- CERROR("Cannot initilize site for echo client(%d)\n", rc);
+ CERROR("Cannot initialize site for echo client(%d)\n", rc);
if (rc < 0)
GOTO(out, rc);
if (rc < 0)
GOTO(out, rc);
- /* discard all pages with index greater then trunc_index */
+ /* discard all pages with index greater than trunc_index */
list_for_each_entry_safe(oap, tmp, &ext->oe_pages,
oap_pending_item) {
pgoff_t index = osc_index(oap2osc(oap));
list_for_each_entry_safe(oap, tmp, &ext->oe_pages,
oap_pending_item) {
pgoff_t index = osc_index(oap2osc(oap));
* \param[in] env execution environment
* \param[in] di iterator of this iteration
*
* \param[in] env execution environment
* \param[in] di iterator of this iteration
*
- * \retval 0 if the pointer is advanced successfuly.
+ * \retval 0 if the pointer is advanced successfully.
* \retval 1 if it reaches to the end of the index object.
* \retval negative errno if the pointer cannot be advanced.
*/
* \retval 1 if it reaches to the end of the index object.
* \retval negative errno if the pointer cannot be advanced.
*/
*
* If cached statfs data claim no free space, but OSP has got a request to
* destroy an object (so release some space probably), then we may need to
*
* If cached statfs data claim no free space, but OSP has got a request to
* destroy an object (so release some space probably), then we may need to
- * refresh cached statfs data sooner then planned. The function checks there
+ * refresh cached statfs data sooner than planned. The function checks there
* is no statfs update going and schedules immediate update if so.
* XXX: there might be a case where removed object(s) do not add free space (empty
* object). If the number of such deletions is high, then we can start to update
* is no statfs update going and schedules immediate update if so.
* XXX: there might be a case where removed object(s) do not add free space (empty
* object). If the number of such deletions is high, then we can start to update
}
/****************************************
}
/****************************************
- * internel context helpers *
+ * internal context helpers *
****************************************/
static
****************************************/
static
/*
* User wants to increase number of threads with for
/*
* User wants to increase number of threads with for
- * each CPU core/HT, most likely the factor is larger then
+ * each CPU core/HT, most likely the factor is larger than
* one thread/core because service threads are supposed to
* be blocked by lock or wait for IO.
*/
* one thread/core because service threads are supposed to
* be blocked by lock or wait for IO.
*/
* the valid values for perms are:
* setuid/setgid/setgrp/rmtacl -- enable corresponding perm
* nosetuid/nosetgid/nosetgrp/normtacl -- disable corresponding perm
* the valid values for perms are:
* setuid/setgid/setgrp/rmtacl -- enable corresponding perm
* nosetuid/nosetgid/nosetgrp/normtacl -- disable corresponding perm
- * they can be listed together, seperated by ',',
+ * they can be listed together, separated by ',',
* when perm and noperm are in the same line (item), noperm is preferential,
* when they are in different lines (items), the latter is preferential,
* '*' nid is as default perm, and is not preferential.
* when perm and noperm are in the same line (item), noperm is preferential,
* when they are in different lines (items), the latter is preferential,
* '*' nid is as default perm, and is not preferential.
unsigned int used = 0;
unsigned int i;
unsigned int used = 0;
unsigned int i;
- /* initilize output array */
+ /* initialize output array */
for (i = 0; i < list_size; i++)
poollist[i] = NULL;
for (i = 0; i < list_size; i++)
poollist[i] = NULL;
int raw, char *pool_name)
{
char *prefix = is_dir ? "" : "lmm_";
int raw, char *pool_name)
{
char *prefix = is_dir ? "" : "lmm_";
int rc;
if (is_dir && lmm_oi_seq(&lum->lmm_oi) == FID_SEQ_LOV_DEFAULT) {
int rc;
if (is_dir && lmm_oi_seq(&lum->lmm_oi) == FID_SEQ_LOV_DEFAULT) {
llapi_printf(LLAPI_MSG_NORMAL, "%hd",
(__s16)lum->lmm_stripe_count);
}
llapi_printf(LLAPI_MSG_NORMAL, "%hd",
(__s16)lum->lmm_stripe_count);
}
- seperator = is_dir ? " " : "\n";
+ separator = is_dir ? " " : "\n";
}
if (verbose & VERBOSE_SIZE) {
}
if (verbose & VERBOSE_SIZE) {
- llapi_printf(LLAPI_MSG_NORMAL, "%s", seperator);
+ llapi_printf(LLAPI_MSG_NORMAL, "%s", separator);
if (verbose & ~VERBOSE_SIZE)
llapi_printf(LLAPI_MSG_NORMAL, "%sstripe_size: ",
prefix);
if (verbose & ~VERBOSE_SIZE)
llapi_printf(LLAPI_MSG_NORMAL, "%sstripe_size: ",
prefix);
llapi_printf(LLAPI_MSG_NORMAL, "%u",
lum->lmm_stripe_size);
}
llapi_printf(LLAPI_MSG_NORMAL, "%u",
lum->lmm_stripe_size);
}
- seperator = is_dir ? " " : "\n";
+ separator = is_dir ? " " : "\n";
}
if ((verbose & VERBOSE_LAYOUT) && !is_dir) {
}
if ((verbose & VERBOSE_LAYOUT) && !is_dir) {
- llapi_printf(LLAPI_MSG_NORMAL, "%s", seperator);
+ llapi_printf(LLAPI_MSG_NORMAL, "%s", separator);
if (verbose & ~VERBOSE_LAYOUT)
llapi_printf(LLAPI_MSG_NORMAL, "%spattern: ",
prefix);
llapi_printf(LLAPI_MSG_NORMAL, "%.x", lum->lmm_pattern);
if (verbose & ~VERBOSE_LAYOUT)
llapi_printf(LLAPI_MSG_NORMAL, "%spattern: ",
prefix);
llapi_printf(LLAPI_MSG_NORMAL, "%.x", lum->lmm_pattern);
}
if ((verbose & VERBOSE_GENERATION) && !is_dir) {
}
if ((verbose & VERBOSE_GENERATION) && !is_dir) {
- llapi_printf(LLAPI_MSG_NORMAL, "%s", seperator);
+ llapi_printf(LLAPI_MSG_NORMAL, "%s", separator);
if (verbose & ~VERBOSE_GENERATION)
llapi_printf(LLAPI_MSG_NORMAL, "%slayout_gen: ",
prefix);
llapi_printf(LLAPI_MSG_NORMAL, "%u",
(int)lum->lmm_layout_gen);
if (verbose & ~VERBOSE_GENERATION)
llapi_printf(LLAPI_MSG_NORMAL, "%slayout_gen: ",
prefix);
llapi_printf(LLAPI_MSG_NORMAL, "%u",
(int)lum->lmm_layout_gen);
}
if (verbose & VERBOSE_OFFSET) {
}
if (verbose & VERBOSE_OFFSET) {
- llapi_printf(LLAPI_MSG_NORMAL, "%s", seperator);
+ llapi_printf(LLAPI_MSG_NORMAL, "%s", separator);
if (verbose & ~VERBOSE_OFFSET)
llapi_printf(LLAPI_MSG_NORMAL, "%sstripe_offset: ",
prefix);
if (verbose & ~VERBOSE_OFFSET)
llapi_printf(LLAPI_MSG_NORMAL, "%sstripe_offset: ",
prefix);
else
llapi_printf(LLAPI_MSG_NORMAL, "%u",
objects[0].l_ost_idx);
else
llapi_printf(LLAPI_MSG_NORMAL, "%u",
objects[0].l_ost_idx);
- seperator = is_dir ? " " : "\n";
+ separator = is_dir ? " " : "\n";
}
if ((verbose & VERBOSE_POOL) && (pool_name != NULL)) {
}
if ((verbose & VERBOSE_POOL) && (pool_name != NULL)) {
- llapi_printf(LLAPI_MSG_NORMAL, "%s", seperator);
+ llapi_printf(LLAPI_MSG_NORMAL, "%s", separator);
if (verbose & ~VERBOSE_POOL)
llapi_printf(LLAPI_MSG_NORMAL, "%spool: ",
prefix);
if (verbose & ~VERBOSE_POOL)
llapi_printf(LLAPI_MSG_NORMAL, "%spool: ",
prefix);
static char *g_health_check_test_file = 0;
/*****************************************************************************
static char *g_health_check_test_file = 0;
/*****************************************************************************
- * Function: initilize_trap_handler
+ * Function: initialize_trap_handler
*
* Description: Initlized the trap poll haalder.
*
*
* Description: Initlized the trap poll haalder.
*
*
****************************************************************************/
*
****************************************************************************/
-void initilize_trap_handler(void)
+void initialize_trap_handler(void)
{
g_poll_interval_seconds = get_poll_interval_seconds();
{
g_poll_interval_seconds = get_poll_interval_seconds();
#ifndef LUSTRE_SNMP_TRAP_H
#define LUSTRE_SNMP_TRAP_H
#ifndef LUSTRE_SNMP_TRAP_H
#define LUSTRE_SNMP_TRAP_H
-extern void initilize_trap_handler(void);
+extern void initialize_trap_handler(void);
extern void terminate_trap_handler(void);
#endif
extern void terminate_trap_handler(void);
#endif
void init_lustresnmp(void) {
void init_lustresnmp(void) {
- /* register ourselves with the agent to handle our mib tree */
- REGISTER_MIB("clusterFileSystems", clusterFileSystems_variables, variable7,
- clusterFileSystems_variables_oid);
-
- initilize_trap_handler();
+ /* register ourselves with the agent to handle our mib tree */
+ REGISTER_MIB("clusterFileSystems",
+ clusterFileSystems_variables, variable7,
+ clusterFileSystems_variables_oid);
- DEBUGMSGTL(("lsnmpd", "%s %s \n", __FUNCTION__, "Initialization Done"));
+ initialize_trap_handler();
+
+ DEBUGMSGTL(("lsnmpd", "%s %s\n", __func__, "Initialization Done"));
}
/*****************************************************************************
}
/*****************************************************************************
void deinit_lustresnmp(void) {
void deinit_lustresnmp(void) {
- /* deregister ourselves with the agent */
- unregister_mib(clusterFileSystems_variables_oid,
- sizeof(clusterFileSystems_variables_oid)/sizeof(clusterFileSystems_variables_oid));
-
- terminate_trap_handler();
-
- DEBUGMSGTL(("lsnmpd", "%s %s \n", __FUNCTION__, "Termination Done"));
+ /* deregister ourselves with the agent */
+ unregister_mib(clusterFileSystems_variables_oid,
+ sizeof(clusterFileSystems_variables_oid)/
+ sizeof(clusterFileSystems_variables_oid));
+
+ terminate_trap_handler();
+
+ DEBUGMSGTL(("lsnmpd", "%s %s\n", __func__, "Termination Done"));
}
/*****************************************************************************
}
/*****************************************************************************