Whamcloud - gitweb
b=21927 test_61 fix
authorElena Gryaznova <grev@sun.com>
Tue, 30 Mar 2010 18:59:02 +0000 (11:59 -0700)
committerRobert Read <rread@sun.com>
Tue, 30 Mar 2010 18:59:02 +0000 (11:59 -0700)
i=Mikhail.Pershin

improve awk pattern to get objid correctly

lustre/tests/recovery-small.sh

index 023c14f..43507fd 100755 (executable)
@@ -1090,12 +1090,12 @@ test_61()
 
        replay_barrier $SINGLEMDS
        createmany -o $DIR/$tdir/$tfile-%d 10 
-       local oid=`do_facet ost1 "lctl get_param -n obdfilter.*OST0000.last_id"`
+       local oid=`do_facet ost1 "lctl get_param -n obdfilter.${ost1_svc}.last_id"`
 
        fail_abort $SINGLEMDS
        
        touch $DIR/$tdir/$tfile
-       local id=`$LFS getstripe $DIR/$tdir/$tfile |awk '$2 ~ /^[1-9]+/ {print $2}'`
+       local id=`$LFS getstripe $DIR/$tdir/$tfile |awk '($1 ~ 0 && $2 ~ /^[1-9]+/) {print $2}'`
        [ $id -le $oid ] && error "the orphan objid was reused, failed"
 
        # Cleanup