From: David van Moolenbroek Date: Fri, 7 Sep 2012 14:25:03 +0000 (+0000) Subject: blocktest: make script more newbie-friendly X-Git-Tag: v3.2.1~345 X-Git-Url: http://zhaoyanbai.com/repos/COPYRIGHT?a=commitdiff_plain;h=2fbc9b274badd0e0cf40914a9ae15af01f79341d;p=minix.git blocktest: make script more newbie-friendly --- 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"