From 2fbc9b274badd0e0cf40914a9ae15af01f79341d Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Fri, 7 Sep 2012 14:25:03 +0000 Subject: [PATCH] blocktest: make script more newbie-friendly --- test/blocktest/support.sh | 4 ++-- test/blocktest/test.sh | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/blocktest/support.sh b/test/blocktest/support.sh index 6c8d780db..eb3dc431c 100644 --- a/test/blocktest/support.sh +++ b/test/blocktest/support.sh @@ -7,9 +7,9 @@ devtopair() { if [ ! -z "$label" ]; then echo "label=$label,minor=`stat -f '%Lr' $1`"; fi } -# usage: blocktest /dev/cXdY.. "params,for,blocktest" +# usage: block_test /dev/cXdY.. "params,for,blocktest" # runs the blocktest driver on the given device with the given parameters -blocktest() { +block_test() { if [ ! -x blocktest ]; then echo "compile blocktest first!" >&2; exit 1; fi if [ ! -b "$1" ]; then echo "$1 is not a block device" >&2; exit 1; fi pair=$(devtopair $1) diff --git a/test/blocktest/test.sh b/test/blocktest/test.sh index ead417ccb..ad550b146 100755 --- a/test/blocktest/test.sh +++ b/test/blocktest/test.sh @@ -5,7 +5,7 @@ # The following commented-out examples of how to run blocktest for certain # driver and device pairs. The syntax of the calls is: # -# blocktest +# block_test # # is the path to a device to run blocktest on. This may be a full # disk, a partition, or a subpartition. If possible, give blocktest the whole @@ -47,16 +47,16 @@ # AT_WINI ATA TEST (for IDE disk devices) -#blocktest /dev/c0d1 "rw,sector=512,min_read=512,element=2,max=16777216" +#block_test /dev/c0d1 "rw,sector=512,min_read=512,element=2,max=16777216" # AT_WINI ATAPI TEST (for IDE CD-ROM devices) -#blocktest /dev/c0d2 "ro,sector=2048,min_read=2,element=2,max=16777216" +#block_test /dev/c0d2 "ro,sector=2048,min_read=2,element=2,max=16777216" # AHCI ATA TEST (for SATA disk devices) -#blocktest /dev/c2d0 "rw,sector=512,min_read=2,element=2,max=4194304" +#block_test /dev/c2d0 "rw,sector=512,min_read=2,element=2,max=4194304" # AHCI ATAPI TEST (for SATA CD-ROM devices) -#blocktest /dev/c2d1 "ro,sector=2048,min_read=2,element=2,max=4194304" +#block_test /dev/c2d1 "ro,sector=2048,min_read=2,element=2,max=4194304" -- 2.44.0