From d12b0a0d91f0842437e48bf9aa01c1b2db348707 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 15 May 2020 18:53:48 +0000 Subject: [PATCH] Fix spelling in documentation and source code See also https://github.com/bvanassche/scst/pull/20. [ bvanassche: left out qla2x00t-32gbit changes and changed patch description ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8920 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- doc/scst_pg.sgml | 2 +- iscsi-scst/README.iser_ofed | 2 +- iscsi-scst/doc/SCST_Gentoo_HOWTO.txt | 2 +- iscsi-scst/kernel/isert-scst/TODO | 2 +- iscsi-scst/kernel/isert-scst/isert.c | 2 +- iscsi-scst/usr/iscsid.h | 2 +- qla2x00t/qla_bsg.h | 6 +++--- qla2x00t/qla_def.h | 2 +- qla2x00t/qla_nx.c | 2 +- scripts/run-regression-tests | 2 +- scst/ChangeLog | 8 ++++---- scst/README | 2 +- scst/src/scst_targ.c | 2 +- scstadmin/README | 2 +- srpt/README_in-tree | 2 +- 15 files changed, 20 insertions(+), 20 deletions(-) diff --git a/doc/scst_pg.sgml b/doc/scst_pg.sgml index c75dddf82..5750db679 100644 --- a/doc/scst_pg.sgml +++ b/doc/scst_pg.sgml @@ -278,7 +278,7 @@ Target driver doesn't have to always allocate buffer in this function, but if it decided to do it, it must check that scst_cmd_get_data_buff_alloced() returns 0, otherwise to avoid double buffer allocation and memory leaks alloc_data_buf() shall fail. Returns -0 in case of success or < 0 (preferrably -ENOMEM) in case of error, or > +0 in case of success or < 0 (preferably -ENOMEM) in case of error, or > 0 if the regular SCST allocation should be done. In case of returning successfully, scst_cmd->tgt_data_buf_alloced will be set by SCST. It is possible that both target driver and dev handler request own memory diff --git a/iscsi-scst/README.iser_ofed b/iscsi-scst/README.iser_ofed index 7ff2a930e..536ea25e2 100644 --- a/iscsi-scst/README.iser_ofed +++ b/iscsi-scst/README.iser_ofed @@ -58,7 +58,7 @@ Remove any distro-provided InfiniBand drivers: rm -rf /lib/modules/$(uname -r)/kernel/drivers/infiniband rm -rf /lib/modules/$(uname -r)/kernel/drivers/net/mlx4 -Next, download and install an OFED pacakge. +Next, download and install an OFED package. For MLNX_OFED, just run the mlnxofedinstall script inside the MLNX_OFED directory. diff --git a/iscsi-scst/doc/SCST_Gentoo_HOWTO.txt b/iscsi-scst/doc/SCST_Gentoo_HOWTO.txt index 05ada92f1..6b7f088ea 100644 --- a/iscsi-scst/doc/SCST_Gentoo_HOWTO.txt +++ b/iscsi-scst/doc/SCST_Gentoo_HOWTO.txt @@ -73,7 +73,7 @@ b) Specific branch (3.0 used in example) In this example disk01 is a virtual disk that is stored in the file /vdisks/vdisk1 and is mounted read_only, disk02 is the same as disk01 but with file /vdisks/vdisk2 and it has its blocksize increased from 512 -to 4096 (see notes below), and finaly disk03 is a real disk used as a +to 4096 (see notes below), and finally disk03 is a real disk used as a blockdevice. Both disk01 and disk02 are connected to the same target with different luns and disk03 is connected to a different target as LUN0, if the allowed_target atttribute is not set the target is open diff --git a/iscsi-scst/kernel/isert-scst/TODO b/iscsi-scst/kernel/isert-scst/TODO index 7f14da508..e1708f820 100644 --- a/iscsi-scst/kernel/isert-scst/TODO +++ b/iscsi-scst/kernel/isert-scst/TODO @@ -1,6 +1,6 @@ * Add suppport for immediate data in iSER * Add suppport for data-out in iSER -* Look into seperating between RX pdu and TX pdu +* Look into separating between RX pdu and TX pdu * Do not signal every "response sent" notification * Make the code NUMA aware * Add support for AHS diff --git a/iscsi-scst/kernel/isert-scst/isert.c b/iscsi-scst/kernel/isert-scst/isert.c index a06083fed..b246e2ad6 100644 --- a/iscsi-scst/kernel/isert-scst/isert.c +++ b/iscsi-scst/kernel/isert-scst/isert.c @@ -496,7 +496,7 @@ static int __init isert_init_module(void) int ret; if (isert_nr_devs > 999) { - PRINT_ERROR("Invalid argument for isert_nr_devs provded: %d", + PRINT_ERROR("Invalid argument for isert_nr_devs provided: %d", isert_nr_devs); ret = -EINVAL; goto out; diff --git a/iscsi-scst/usr/iscsid.h b/iscsi-scst/usr/iscsid.h index 82e6de62f..dbb911d74 100644 --- a/iscsi-scst/usr/iscsid.h +++ b/iscsi-scst/usr/iscsid.h @@ -287,7 +287,7 @@ extern void __log_pdu(const char *func, int line, int level, struct PDU *pdu); /* Conditional versions of log_* functions. Useful when log priority depends * on some parameter, say recurrence of some event. In these cases the first - * occurence could be logged as log_info while the latter ones may be logged + * occurrence could be logged as log_info while the latter ones may be logged * with log_debug. So, if level != 0 then log_debug is called. */ #define log_info_cond(level, args...) \ diff --git a/qla2x00t/qla_bsg.h b/qla2x00t/qla_bsg.h index 1128cf0d1..6a6725ee8 100644 --- a/qla2x00t/qla_bsg.h +++ b/qla2x00t/qla_bsg.h @@ -27,18 +27,18 @@ #define EXT_STATUS_MAILBOX 11 #define EXT_STATUS_NO_MEMORY 17 -/* BSG definations for interpreting CommandSent field */ +/* BSG definitions for interpreting CommandSent field */ #define INT_DEF_LB_LOOPBACK_CMD 0 #define INT_DEF_LB_ECHO_CMD 1 -/* Loopback related definations */ +/* Loopback related definitions */ #define EXTERNAL_LOOPBACK 0xF2 #define ENABLE_INTERNAL_LOOPBACK 0x02 #define INTERNAL_LOOPBACK_MASK 0x000E #define MAX_ELS_FRAME_PAYLOAD 252 #define ELS_OPCODE_BYTE 0x10 -/* BSG Vendor specific definations */ +/* BSG Vendor specific definitions */ #define A84_ISSUE_WRITE_TYPE_CMD 0 #define A84_ISSUE_READ_TYPE_CMD 1 #define A84_CLEANUP_CMD 2 diff --git a/qla2x00t/qla_def.h b/qla2x00t/qla_def.h index 6991e9016..049cacab8 100644 --- a/qla2x00t/qla_def.h +++ b/qla2x00t/qla_def.h @@ -725,7 +725,7 @@ typedef struct { #define MBC_GET_LINK_STATUS 0x6b /* Get port link status. */ #define MBC_LIP_RESET 0x6c /* LIP reset. */ #define MBC_SEND_SNS_COMMAND 0x6e /* Send Simple Name Server */ - /* commandd. */ + /* command. */ #define MBC_LOGIN_FABRIC_PORT 0x6f /* Login fabric port. */ #define MBC_SEND_CHANGE_REQUEST 0x70 /* Send Change Request. */ #define MBC_LOGOUT_FABRIC_PORT 0x71 /* Logout fabric port. */ diff --git a/qla2x00t/qla_nx.c b/qla2x00t/qla_nx.c index d6a00fc25..748b6891c 100644 --- a/qla2x00t/qla_nx.c +++ b/qla2x00t/qla_nx.c @@ -973,7 +973,7 @@ qla82xx_rom_fast_read(struct qla_hw_data *ha, int addr, int *valp) } if (loops >= 50000) { ql_log(ql_log_fatal, vha, 0x00b9, - "Failed to aquire SEM2 lock.\n"); + "Failed to acquire SEM2 lock.\n"); return -1; } ret = qla82xx_do_rom_fast_read(ha, addr, valp); diff --git a/scripts/run-regression-tests b/scripts/run-regression-tests index 921b750fc..97fb9f6a0 100755 --- a/scripts/run-regression-tests +++ b/scripts/run-regression-tests @@ -176,7 +176,7 @@ function compile_scst_no_dlm { ) } -# Test out-of-tree compilation agains the kernel header files in +# Test out-of-tree compilation against the kernel header files in # /lib/modules/$(uname -r)/build. function compile_scst_patched { local scst="$PWD" diff --git a/scst/ChangeLog b/scst/ChangeLog index 5bc0acba2..e3ab68e2b 100644 --- a/scst/ChangeLog +++ b/scst/ChangeLog @@ -58,7 +58,7 @@ Summary of changes between versions 3.0 and 3.1 - scst_vdisk: LBPRZ now follows limits.discard_zeroes_data. - scst core: support for 64-bit LUNs has been added. This requires a Linux kernel that supports 64-bit LUNs. -- A new kernel module parameter, scst_forcibly_close_sessions, controls wheter +- A new kernel module parameter, scst_forcibly_close_sessions, controls whether or not attempting to remove an access control group with one or more active sessions succeeds or fails with -EBUSY. - scst_vdisk: the EUI-64 and NAA IDs are now configurable. @@ -245,7 +245,7 @@ Summary of changes between versions 1.0.0 and 1.0.1 - Depecated scst_cmd_get_tgt_resp_flags() removed - - SWP and TAS parameters made changable in vdisk handler + - SWP and TAS parameters made changeable in vdisk handler - External interface changed to fix usage of in_atomic(). Now target drivers and dev handlers need to explicitly supply preferred execution @@ -290,7 +290,7 @@ Summary of changes between versions 0.9.5 and 1.0.0 - Fixed READ POSITION command handling - - TM processing made independant from other TM commands (before it was serialized) + - TM processing made independent from other TM commands (before it was serialized) - Sense buffer made dynamic @@ -302,7 +302,7 @@ Summary of changes between versions 0.9.5 and 1.0.0 - Processing latency measurement facility added - - Sessions registration/unregistration made independant from other activities + - Sessions registration/unregistration made independent from other activities - Major performance improvements diff --git a/scst/README b/scst/README index 64b7ea8e5..3e69c8602 100644 --- a/scst/README +++ b/scst/README @@ -1142,7 +1142,7 @@ cache. The following parameters possible for vdisk_fileio: limits VPD page. Value is in bytes, and must be a multiple of the block size. Default is 524288. Setting this parameter to a multiple of the optimal transfer length below 4 MB may improve performance. Setting this - paramter to a value above 4 MB hurts performance because the SGV cache + parameter to a value above 4 MB hurts performance because the SGV cache only supports buffers up to 4 MB. - write_through - disables write back caching. Note, this option diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 961d0a8d3..e058879bd 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -2465,7 +2465,7 @@ EXPORT_SYMBOL_GPL(__scst_check_local_events); * No locks. Returns true, if expected_sn was incremented. * * !! At this point cmd can be processed in parallel by some other thread! - * !! As consecuence, no pointer in cmd, except cur_order_data and + * !! As consequence, no pointer in cmd, except cur_order_data and * !! sn_slot, can be touched here! The same is for assignments to cmd's * !! fields. As protection cmd declared as const. * diff --git a/scstadmin/README b/scstadmin/README index 0abdf931f..aff66a3e9 100644 --- a/scstadmin/README +++ b/scstadmin/README @@ -1,6 +1,6 @@ SCST Configuration/Administration scripts. Here you'll find scstadmin which reads a configuration file /etc/scst.conf, or one if your choosing. With it you can manually -or automatically configure every aspect of SCST incuding enabling/disabling target mode +or automatically configure every aspect of SCST including enabling/disabling target mode on your target SCSI controller. The old directory contains scst_db which uses a mysql backend database to configure SCST but doesn't handle all the things scstadmin handles. The perl module SCST::SCST is very generic and tries to handle error checking as well. diff --git a/srpt/README_in-tree b/srpt/README_in-tree index 8261307a6..1a79f500c 100644 --- a/srpt/README_in-tree +++ b/srpt/README_in-tree @@ -56,7 +56,7 @@ h. echo "add vdisk2 2" >/proc/scsi_tgt/groups/Default/devices 2. modprobe ib_srpt -B. On initiator machines you can manualy do the following steps: +B. On initiator machines you can manually do the following steps: 1. modprobe ib_srp 2. ibsrpdm -c (to discover new SRP target) 3. echo > /sys/class/infiniband_srp/srp-mthca0-1/add_target