Whamcloud - gitweb
b=21927 test_61 interop 18 <-> 20 fix
authorElena Gryaznova <grev@sun.com>
Fri, 12 Mar 2010 16:34:13 +0000 (19:34 +0300)
committerJohann Lombardi <johann@sun.com>
Tue, 16 Mar 2010 13:29:56 +0000 (14:29 +0100)
i=Mikhail.Pershin

interop interop 18 <-> 20 changes
improve awk pattern to get objid correctly

lustre/tests/recovery-small.sh

index b564e82..f285d4f 100755 (executable)
@@ -1036,7 +1036,9 @@ run_test 59 "Read cancel race on client eviction"
 
 test_61()
 {
-       local cflags='osc.*-OST0000-osc.connect_flags'
+       
+       local mdtosc=$(get_mdtosc_proc_path ${ost1_svc})
+       local cflags=osc.$mdtosc.connect_flags
        do_facet mds "lctl get_param -n $cflags |grep -q skip_orphan"
        [ $? -ne 0 ] && skip "don't have skip orphan feature" && return
 
@@ -1046,12 +1048,12 @@ test_61()
 
        replay_barrier mds
        createmany -o $DIR/d61/$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 mds
        
        touch $DIR/d61/$tfile
-       local id=`$LFS getstripe $DIR/d61/$tfile | awk '$2 ~ /^[1-9]+/ {print $2}'`
+       local id=`$LFS getstripe $DIR/d61/$tfile | awk '($1 ~ 0 && $2 ~ /^[1-9]+/) {print $2}'`
        [ $id -le $oid ] && error "the orphan objid was reused, failed"
 
        # Cleanup