Whamcloud - gitweb
LU-5710 all: third batch of corrected typos and grammar errors 24/14424/8
authorFrank Zago <fzago@cray.com>
Thu, 15 Jan 2015 16:58:59 +0000 (10:58 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 Jun 2015 05:51:39 +0000 (05:51 +0000)
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:
Documentation/lfsck.txt
config/lustre-build.m4
debian/rules
lnet/klnds/gnilnd/gni_pub.h
lnet/klnds/socklnd/socklnd_cb.c
lnet/klnds/socklnd/socklnd_proto.c
lnet/lnet/config.c
lnet/utils/cyaml/cyaml.c
lustre/ChangeLog
lustre/llite/vvp_io.c
lustre/lod/lod_qos.c
lustre/lov/lov_pool.c
lustre/mdc/mdc_request.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_hsm_cdt_agent.c
lustre/mdt/mdt_hsm_cdt_requests.c
lustre/obdclass/obd_mount.c
lustre/obdecho/echo_client.c
lustre/osc/osc_cache.c
lustre/osp/osp_md_object.c
lustre/osp/osp_precreate.c
lustre/ptlrpc/gss/gss_pipefs.c
lustre/ptlrpc/service.c
lustre/utils/l_getidentity.c
lustre/utils/liblustreapi.c
snmp/lustre-snmp-trap.c
snmp/lustre-snmp-trap.h
snmp/lustre-snmp.c

index 7e58973..f4e280f 100644 (file)
@@ -184,7 +184,7 @@ Glossary of terms
 ===============================================
 
 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.
index 3963c3b..0bae36a 100644 (file)
@@ -434,7 +434,7 @@ AS_IF([test x$target_cpu = "xx86_64" -a x$target_vendor != "xk1om"],
 LIBCFS_CONDITIONALS
 LN_CONDITIONALS
 LC_CONDITIONALS
 LIBCFS_CONDITIONALS
 LN_CONDITIONALS
 LC_CONDITIONALS
-]) # LB_CONTITIONALS
+]) # LB_CONDITIONALS
 
 #
 # LB_CONFIG_FILES
 
 #
 # LB_CONFIG_FILES
index f9df441..7fe36a2 100755 (executable)
@@ -28,7 +28,7 @@ endif
 #CC?=gcc-3.3
 #export CC
 
 #CC?=gcc-3.3
 #export CC
 
-# 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
index 6046cb9..5d86827 100644 (file)
@@ -3326,8 +3326,8 @@ gni_return_t
  * 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(
@@ -5315,8 +5315,8 @@ gni_return_t
  * 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(
index 7879b47..df18aa5 100644 (file)
@@ -1115,8 +1115,8 @@ ksocknal_process_receive (ksock_conn_t *conn)
 
        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 ||
index 5612abc..914da56 100644 (file)
@@ -219,7 +219,7 @@ ksocknal_queue_tx_zcack_v3(ksock_conn_t *conn,
         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);
 
index 1b8fc3c..4f338cc 100644 (file)
@@ -327,7 +327,7 @@ lnet_parse_networks(struct list_head *nilist, char *networks)
                                goto failed;
                        }
 
                                goto failed;
                        }
 
-                       /* 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.
index cb2bf83..31283d8 100644 (file)
@@ -1113,7 +1113,7 @@ struct cYAML *cYAML_build_tree(char *yaml_file,
        /* 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");
index d632164..3d05639 100644 (file)
@@ -460,7 +460,7 @@ Description: Remove set_info(KEY_UNLINKED) from MDS/OSC
 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
@@ -2727,7 +2727,7 @@ 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.
 
 --------------------------------------------------------------------------------
index 0632084..1fae402 100644 (file)
@@ -320,7 +320,7 @@ static void vvp_io_fini(const struct lu_env *env, const struct cl_io_slice *ios)
                /* 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()
index 7ee3d33..d447d31 100644 (file)
@@ -826,7 +826,7 @@ static int lod_qos_is_ost_used(const struct lu_env *env, int ost, __u32 stripes)
 }
 
 /**
 }
 
 /**
- * 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
@@ -981,7 +981,7 @@ repeat_find:
                }
 
                /*
                }
 
                /*
-                * 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;
@@ -1107,7 +1107,7 @@ static int lod_alloc_ost_list(const struct lu_env *env,
                }
 
                /*
                }
 
                /*
-                * 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;
@@ -1233,7 +1233,7 @@ repeat_find:
                }
 
                /*
                }
 
                /*
-                * 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;
index 1d6360e..b808d58 100644 (file)
@@ -458,18 +458,18 @@ int lov_pool_new(struct obd_device *obd, char *poolname)
        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);
index ce1ebbb..64bf184 100644 (file)
@@ -2083,9 +2083,9 @@ static int mdc_ioc_swap_layouts(struct obd_export *exp,
 
        /* 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 |
index fe07480..25f3e77 100644 (file)
@@ -827,7 +827,7 @@ void mdd_changelog_rec_ext_jobid(struct changelog_rec *rec, const char *jobid)
  * \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,
index 35d9fdd..b6c8126 100644 (file)
@@ -617,7 +617,7 @@ static int mdd_fix_attr(const struct lu_env *env, struct mdd_object *obj,
  * 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,
index 5c099eb..4ef5f14 100644 (file)
@@ -49,7 +49,7 @@
 
 /*
  * 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
index 36adeb1..bbd7f44 100644 (file)
@@ -300,7 +300,7 @@ void mdt_cdt_put_request(struct cdt_agent_req *car)
 
 /**
  * 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
index bf07a87..4f247c3 100644 (file)
@@ -664,10 +664,10 @@ int lustre_put_lsi(struct super_block *sb)
 }
 
 /*** SERVER NAME ***
 }
 
 /*** SERVER NAME ***
- * <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
  */
index 3aa7759..c117b7a 100644 (file)
@@ -598,10 +598,10 @@ static int echo_site_init(const struct lu_env *env, struct echo_device *ed)
         struct cl_site *site = &ed->ed_site_myself;
         int rc;
 
         struct cl_site *site = &ed->ed_site_myself;
         int rc;
 
-        /* initialize site */
+       /* initialize site */
         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);
                 return rc;
         }
 
                 return rc;
         }
 
index 48a43f3..66e08b7 100644 (file)
@@ -964,7 +964,7 @@ static int osc_extent_truncate(struct osc_extent *ext, pgoff_t trunc_index,
        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));
index caa7ee9..3acbb16 100644 (file)
@@ -697,7 +697,7 @@ static int osp_md_index_delete(const struct lu_env *env,
  * \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.
  */
index ec64dae..3c4d3c8 100644 (file)
@@ -217,7 +217,7 @@ static int osp_statfs_update(struct osp_device *d)
  *
  * 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
index c717529..eec4c8d 100644 (file)
@@ -85,7 +85,7 @@ static void gss_sec_pipe_upcall_fini(struct gss_sec *gsec)
 }
 
 /****************************************
 }
 
 /****************************************
- * internel context helpers             *
+ * internal context helpers             *
  ****************************************/
 
 static
  ****************************************/
 
 static
index 6229a6f..5098c10 100644 (file)
@@ -554,7 +554,7 @@ ptlrpc_server_nthreads_check(struct ptlrpc_service *svc,
 
                /*
                 * 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.
                 */
index 9f357a4..9495643 100644 (file)
@@ -65,7 +65,7 @@
  * 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.
index a16257d..46e3613 100644 (file)
@@ -1376,7 +1376,7 @@ int llapi_get_poollist(const char *name, char **poollist, int list_size,
         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;
 
@@ -2365,7 +2365,7 @@ static void lov_dump_user_lmm_header(struct lov_user_md *lum, char *path,
                                      int raw, char *pool_name)
 {
         char *prefix = is_dir ? "" : "lmm_";
                                      int raw, char *pool_name)
 {
         char *prefix = is_dir ? "" : "lmm_";
-       char *seperator = "";
+       char *separator = "";
         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) {
@@ -2413,11 +2413,11 @@ static void lov_dump_user_lmm_header(struct lov_user_md *lum, char *path,
                        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);
@@ -2435,30 +2435,30 @@ static void lov_dump_user_lmm_header(struct lov_user_md *lum, char *path,
                        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);
-               seperator = "\n";
+               separator = "\n";
        }
 
         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);
-               seperator = "\n";
+               separator = "\n";
         }
 
         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);
@@ -2470,11 +2470,11 @@ static void lov_dump_user_lmm_header(struct lov_user_md *lum, char *path,
                 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);
index ea09d9f..c908d47 100644 (file)
@@ -123,7 +123,7 @@ static unsigned int g_registration_handle;
 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.
  *
@@ -133,7 +133,7 @@ static char *g_health_check_test_file = 0;
  *
  ****************************************************************************/
  
  *
  ****************************************************************************/
  
-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();
 
index 1dbfe1b..9f26ead 100644 (file)
@@ -39,7 +39,7 @@
 #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
index 41070e0..2c1bcf3 100644 (file)
@@ -187,13 +187,14 @@ struct variable7 clusterFileSystems_variables[] = {
  
 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"));
 }
 
 /*****************************************************************************
 }
 
 /*****************************************************************************
@@ -209,13 +210,14 @@ void init_lustresnmp(void) {
 
 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"));
 }
 
 /*****************************************************************************
 }
 
 /*****************************************************************************