#! /bin/sh -x . dm_tools.sh # the location of the hashdd program, and a couple of random seeds s1=89 s2=90 dev=flakey # The tables we're going to be using for this test table="0 1024000 failure 0 0 0 0 0 0 0 0 " # just in case the device already exists remove $dev >&2 /dev/null # create the devices create $dev $table # stamp a pattern stamp $p1 $s1 # check reads to mpath work verify $dev $s1 sleep 30 # the device should now be broken verify $dev $s1