mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 02:31:27 +00:00
scripts: Merge from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4659 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -210,8 +210,7 @@ if [ "${perform_write_test}" = "true" -a ! -w "${device}" ]; then
|
||||
fi
|
||||
|
||||
if [ "${perform_read_test}" = "true" -a \
|
||||
$(dd if="${device}" bs=1M count=$(pow2 $(($log2_io_size - 20))) \
|
||||
2>/dev/null | wc --bytes) -lt $(pow2 $log2_io_size) ]
|
||||
"$(($(</sys/class/block/$(basename $device)/size) * 512))" -lt $(pow2 $log2_io_size) ]
|
||||
then
|
||||
echo "Error: device ${device} contains less than $(pow2 $log2_io_size) bytes."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user