9 nblocks2=`expr $nblocks1 - 1`
10 nblocks3=`expr $nblocks2 / 2`
12 us0=$(attach_md -t malloc -s $nblocks1) || exit 1
13 us1=$(attach_md -t malloc -s $nblocks1) || exit 1
14 us2=$(attach_md -t malloc -s $nblocks1) || exit 1
16 dd if=/dev/random of=/dev/${us0} count=$nblocks1 >/dev/null 2>&1
17 dd if=/dev/random of=/dev/${us1} count=$nblocks1 >/dev/null 2>&1
18 dd if=/dev/random of=/dev/${us2} count=$nblocks1 >/dev/null 2>&1
20 graid3 label -w $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
22 # Wait for synchronization.
25 # Break one component.
26 dd if=/dev/random of=/dev/${us1} count=$nblocks2 >/dev/null 2>&1
27 # Provoke retaste of the rest components.
32 dd if=/dev/raid3/${name} of=/dev/null bs=1k count=$nblocks3 >/dev/null 2>&1
34 if [ $ec -eq 0 ]; then