]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
Fix common misspellings from codespell project
authorYi Zhang <yi.zhang@redhat.com>
Fri, 10 Nov 2023 06:33:58 +0000 (14:33 +0800)
committerYi Zhang <yi.zhang@redhat.com>
Fri, 10 Nov 2023 06:33:58 +0000 (14:33 +0800)
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
common/rc
common/scsi_debug
tests/block/009
tests/block/034
tests/nbd/002
tests/nvme/032
tests/scsi/002
tests/zbd/003
tests/zbd/004
tests/zbd/rc

index caaa49c119749a56b3cf7a16016020c49853daab..c3680f5b56a1d9ab5fb68231a386d110c4d6cec1 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -410,7 +410,7 @@ _require_test_dev_is_partition() {
 
 _require_normal_user() {
        if ! id "$NORMAL_USER" >/dev/null 2>&1; then
-               SKIP_REASONS+=("valid NORMAL_USER is not specfied")
+               SKIP_REASONS+=("valid NORMAL_USER is not specified")
                return 1
        fi
        return 0
index bbdffd2ca4627e34a3a30cb660b096344c795a19..4e64b931a3d8cbeba38622bf5a3a98ead9bb2e93 100644 (file)
@@ -138,7 +138,7 @@ _configure_scsi_debug() {
                value=${o#*=}
                values+=("${value}")
                if ! path=$(_scsi_debug_key_path "$key"); then
-                       echo "sysfs to write $key is not avaialbe"
+                       echo "sysfs to write $key is not available"
                        return 1
                fi
                if [[ $key == add_host ]]; then
index d3ea42a5a6f8db5d439b59e1ac81bf84b175d04c..7256afc3acb33840b0032144812c3c4bce72de5e 100755 (executable)
@@ -34,7 +34,7 @@ test() {
        xfs_io -c "pwrite -S 0xbb -b 2M 2M 10M" -f "$dev" >>"$FULL"
 
        blkdiscard "$dev"
-       # After device was fully discarded, read sould return all zeroes
+       # After device was fully discarded, read should return all zeroes
        dd if="$dev" bs=4k  2>>"$FULL" | hexdump
        dd if="$dev" bs=4M iflag=direct 2>>"$FULL" | hexdump
 
index 9a3bec4cfaa1759538351f1620b0e1ec7fb2d51a..052fa98565a4d51b103b74ea65b6c6a57204b265 100644 (file)
@@ -50,7 +50,7 @@ test() {
                fi
        done
 
-       # There might be possibilty of some random process freeing up memory at
+       # There might be possibility of some random process freeing up memory at
        # same time nullblk is unloaded.
        # we consider 3/5 times to be positive.
        if ((mem_leak > 3)); then
index ddc48cad8537fcf2a557bbf20ff60d556ff76e7b..fd992a099bdd6f1507e733f972b3ee50ef08ae70 100755 (executable)
@@ -95,7 +95,7 @@ test() {
        udevadm settle
 
        if  ! stat /dev/nbd0p1 >/dev/null 2>&1; then
-               echo "Didn't have parition on the netlink path"
+               echo "Didn't have partition on the netlink path"
                nbd-client -L -d /dev/nbd0 >> "$FULL" 2>&1
                _stop_nbd_server
                return 1
index 93f53ac22a0bcfb2d96ae37b7c406ed086dba4ac..5353e96a37df03401f01f3ed0d8a48a71cc6676d 100755 (executable)
@@ -4,7 +4,7 @@
 #
 # Test nvme pci adapter rescan/reset/remove operation during I/O
 #
-# Regression test for bellow two commits:
+# Regression test for below two commits:
 # http://lists.infradead.org/pipermail/linux-nvme/2017-May/010367.html
 # 986f75c876db nvme: avoid to use blk_mq_abort_requeue_list()
 # 806f026f9b90 nvme: use blk_mq_start_hw_queues() in nvme_kill_queues()
index 0d6ed3d589a8782677a8f6dcfdad725c7f81b19f..b38706447f8313d90b377f40015eb100546bc3c5 100755 (executable)
@@ -7,7 +7,7 @@
 
 . tests/scsi/rc
 
-DESCRIPTION="perfom a SG_DXFER_FROM_DEV from the /dev/sg read-write interface"
+DESCRIPTION="perform a SG_DXFER_FROM_DEV from the /dev/sg read-write interface"
 QUICK=1
 
 requires() {
index 7f4fa2cf567207b0c26639478250b8643ea2811c..18eb254de5dd506ced1babd6a4daf7a88bdd44cf 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright (C) 2018 Western Digital Corporation or its affiliates.
 #
 # Confirm that reset zone command for 2 contiguous sequential write
-# requried zones works as expected.
+# required zones works as expected.
 
 . tests/zbd/rc
 
@@ -62,7 +62,7 @@ test_device() {
        _get_blkzone_report "${TEST_DEV}" || return $?
        for i in "${target_zones[@]}"; do
                if [[ ${ZONE_WPTRS[$i]} -ne 8 ]]; then
-                       echo -n "Unexpected write poiter position in zone ${i} "
+                       echo -n "Unexpected write pointer position in zone ${i} "
                        echo "wp: ${ZONE_WPTRS[i]}"
                        return 1
                fi
@@ -76,7 +76,7 @@ test_device() {
        _get_blkzone_report "${TEST_DEV}" || return $?
        for i in "${target_zones[@]}"; do
                if [[ ${ZONE_WPTRS[i]} -ne 0 ]]; then
-                       echo -n "Unexpected non-zero write poiter in zone ${i} "
+                       echo -n "Unexpected non-zero write pointer in zone ${i} "
                        echo "wp: ${ZONE_WPTRS[i]}"
                        return 1
                fi
index 17c860e248d5c7cec798d1a4ecdafac5cff71831..09bc6c709cafb2e0b1bc34bb7ea992194cb2d271 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright (C) 2018 Western Digital Corporation or its affiliates.
 #
 # Check kernel splits write operations across a zone border. Select two
-# contiguous sequential write required zones and confirm write oprations
+# contiguous sequential write required zones and confirm write operations
 # across the two zones succeed.
 
 . tests/zbd/rc
index ffe3f6cb8a74c4e8b2cfd3c43459489f259ee675..570928b37c88735ddcd9b3ddaff4957817a08475 100644 (file)
@@ -164,7 +164,7 @@ _get_blkzone_report() {
                return 1
        fi
 
-       # Set value to allow additioanl element access at array end
+       # Set value to allow additional element access at array end
        local -i max_idx=$((REPORTED_COUNT - 1))
        ZONE_STARTS+=( $((ZONE_STARTS[max_idx] + ZONE_LENGTHS[max_idx])) )
        ZONE_LENGTHS+=( "${ZONE_LENGTHS[max_idx]}" )