From: Yi Zhang Date: Fri, 10 Nov 2023 06:33:58 +0000 (+0800) Subject: Fix common misspellings from codespell project X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fd846bd2d3a89c96d31f3eede13f1a2669c3bcff;p=users%2Fsagi%2Fblktests.git Fix common misspellings from codespell project Signed-off-by: Yi Zhang --- diff --git a/common/rc b/common/rc index caaa49c..c3680f5 100644 --- 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 diff --git a/common/scsi_debug b/common/scsi_debug index bbdffd2..4e64b93 100644 --- a/common/scsi_debug +++ b/common/scsi_debug @@ -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 diff --git a/tests/block/009 b/tests/block/009 index d3ea42a..7256afc 100755 --- a/tests/block/009 +++ b/tests/block/009 @@ -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 diff --git a/tests/block/034 b/tests/block/034 index 9a3bec4..052fa98 100644 --- a/tests/block/034 +++ b/tests/block/034 @@ -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 diff --git a/tests/nbd/002 b/tests/nbd/002 index ddc48ca..fd992a0 100755 --- a/tests/nbd/002 +++ b/tests/nbd/002 @@ -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 diff --git a/tests/nvme/032 b/tests/nvme/032 index 93f53ac..5353e96 100755 --- a/tests/nvme/032 +++ b/tests/nvme/032 @@ -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() diff --git a/tests/scsi/002 b/tests/scsi/002 index 0d6ed3d..b387064 100755 --- a/tests/scsi/002 +++ b/tests/scsi/002 @@ -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() { diff --git a/tests/zbd/003 b/tests/zbd/003 index 7f4fa2c..18eb254 100755 --- a/tests/zbd/003 +++ b/tests/zbd/003 @@ -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 diff --git a/tests/zbd/004 b/tests/zbd/004 index 17c860e..09bc6c7 100755 --- a/tests/zbd/004 +++ b/tests/zbd/004 @@ -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 diff --git a/tests/zbd/rc b/tests/zbd/rc index ffe3f6c..570928b 100644 --- a/tests/zbd/rc +++ b/tests/zbd/rc @@ -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]}" )