_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
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
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
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
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
#
# 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()
. 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() {
# 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
_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
_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
# 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
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]}" )