X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=77157c2b161dc57fa7ba929f0a3ba0ba1350241b;hp=8e2fd534ef3ce368ae90b5284970d645fb21d175;hb=71d85fa5153a7799562e2cadf8d08b1a9d3888ec;hpb=0e660eab787c3b2857e4295f1ec554e016393885 diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 8e2fd53..77157c2 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -3994,7 +3994,7 @@ compare_stripe_info1() { do local size=`expr $STRIPE_SIZE \* $num` local file=file"$num-$offset-$count" - get_stripe_info client $file + get_stripe_info client $PWD/$file if [ $stripe_size -ne $size ]; then error "$file: different stripe size" && return fi @@ -4018,7 +4018,7 @@ compare_stripe_info2() { do local size=`expr $STRIPE_SIZE \* $num` local file=file"$num-$offset-$count" - get_stripe_info client $file + get_stripe_info client $PWD/$file if [ $stripe_size -ne $size ]; then error "$file: different stripe size" && return fi @@ -5088,6 +5088,7 @@ test_123a() { # was test 123, statahead(bug 11401) for ((i=1, j=0; i<=$NUMFREE; j=$i, i=$((i * MULT)) )); do createmany -o $DIR/$tdir/$tfile $j $((i - j)) + swrong=`lctl get_param -n llite.*.statahead_stats | grep "statahead wrong:" | awk '{print $3}'` lctl get_param -n llite.*.statahead_max | grep '[0-9]' cancel_lru_locks mdc cancel_lru_locks osc @@ -5097,6 +5098,7 @@ test_123a() { # was test 123, statahead(bug 11401) delta_sa=$((etime - stime)) log "ls $i files with statahead: $delta_sa sec" lctl get_param -n llite.*.statahead_stats + ewrong=`lctl get_param -n llite.*.statahead_stats | grep "statahead wrong:" | awk '{print $3}'` max=`lctl get_param -n llite.*.statahead_max | head -n 1` lctl set_param -n llite.*.statahead_max 0 @@ -5110,6 +5112,9 @@ test_123a() { # was test 123, statahead(bug 11401) log "ls $i files without statahead: $delta sec" lctl set_param llite.*.statahead_max=$max + if [ $swrong -lt $ewrong ]; then + log "statahead was stopped, maybe too many locks held!" + fi if [ $delta_sa -gt $(($delta + 2)) ]; then log "ls $i files is slower with statahead!" error=1 @@ -5723,8 +5728,8 @@ test_140() { #bug-17379 } done i=`expr $i - 1` - [ $i -eq 5 -o $i -eq 8 ] || error "Invalid symlink depth" echo "The symlink depth = $i" + [ $i -eq 5 -o $i -eq 8 ] || error "Invalid symlink depth" } run_test 140 "Check reasonable stack depth (shouldn't LBUG) ====" @@ -5841,6 +5846,11 @@ test_152() { } run_test 152 "test read/write with enomem ============================" +test_153() { + multiop $DIR/$tfile Ow4096Ycu || error "multiop failed" +} +run_test 153 "test if fdatasync does not crash =======================" + #Changelogs test_160() { remote_mds && skip "remote MDS" && return