diff options
author | Neil Brown <neilb@suse.de> | 2006-10-23 06:56:22 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-10-23 06:56:22 +0200 |
commit | 81074c9f7bd708413131a8fb7ba98440e59f7574 (patch) | |
tree | 41bec9f4e3cd0b1d71fe8e2c046eb50f4346a292 /test | |
parent | Improve error message when wrong --update option is given. (diff) | |
download | mdadm-81074c9f7bd708413131a8fb7ba98440e59f7574.tar.xz mdadm-81074c9f7bd708413131a8fb7ba98440e59f7574.zip |
Update test scripts for new blockdev
--getsize64 seems to have disappeared.
Diffstat (limited to 'test')
-rw-r--r-- | test | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -136,10 +136,10 @@ testdev() { mkfs -j $dev > /dev/null 2>&1 && fsck -fn $dev >&2 dsize=$[dvsize/chunk] dsize=$[dsize*chunk] - rasize=$[dsize*1024*cnt] - if [ $rasize -ne `/sbin/blockdev --getsize64 $dev` ] + rasize=$[dsize*2*cnt] + if [ $rasize -ne `/sbin/blockdev --getsize $dev` ] then - echo "ERROR: size is wrong for $dev: $cnt * $dvsize (chunk=$chunk) = $rasize, not `/sbin/blockdev --getsize64 $dev`" + echo "ERROR: size is wrong for $dev: $cnt * $dvsize (chunk=$chunk) = $rasize, not `/sbin/blockdev --getsize $dev`" exit 1 fi } |