- ECHO_UUID="ECHO_osc1_UUID"
- tOST=`$LCTL dl | | awk '/-osc-|OSC.*MNT/ { print $4 }' | head -1`
-
- lfs setstripe $DIR1/$tfile 1048576 0 2
- tOBJID=`lfs getstripe $DIR1/$tfile | grep "^[[:space:]]\+1" | awk '{print $2}'`
- dd if=/dev/zero of=$DIR1/$tfile bs=1024k count=2
-
- $LCTL <<EOF
-newdev
-attach echo_client ECHO_osc1 $ECHO_UUID
-setup $tOST
-EOF
- tECHOID=`$LCTL dl | grep $ECHO_UUID | awk '{print $1}'`
- $LCTL --device $tECHOID destroy "${tOBJID}:0"
-
- # reading of 1st stripe should pass
- dd if=$DIR2/$tfile of=/dev/null bs=1024k count=1 || error
- # reading of 2nd stripe should fail (this stripe was destroyed)
- dd if=$DIR2/$tfile of=/dev/null bs=1024k count=1 skip=1 && error
+ ECHO_UUID="ECHO_osc1_UUID"
+ tOST=`$LCTL dl | | awk '/-osc-|OSC.*MNT/ { print $4 }' | head -1`
+
+ lfs setstripe $DIR1/$tfile 1048576 0 2
+ tOBJID=`lfs getstripe $DIR1/$tfile |grep "^[[:space:]]\+1" |awk '{print $2}'`
+ dd if=/dev/zero of=$DIR1/$tfile bs=1024k count=2
+
+ $LCTL <<-EOF
+ newdev
+ attach echo_client ECHO_osc1 $ECHO_UUID
+ setup $tOST
+ EOF
+
+ tECHOID=`$LCTL dl | grep $ECHO_UUID | awk '{print $1}'`
+ $LCTL --device $tECHOID destroy "${tOBJID}:0"