Whamcloud - gitweb
b=17846
[fs/lustre-release.git] / lustre / tests / sanity.sh
index e6fc2bf..3220383 100644 (file)
@@ -941,8 +941,7 @@ reset_enospc() {
        mkdir -p $DIR/d27/nospc
        rmdir $DIR/d27/nospc
        local list=$(comma_list $(osts_nodes))
-       [ "$OSTIDX" ] && \
-               { var=ost$((OSTIDX + 1))_HOST && list=${!var}; }
+       [ "$OSTIDX" ] && list=$(facet_host ost$((OSTIDX + 1)))
 
        do_nodes $list lctl set_param fail_loc=$FAIL_LOC
 }
@@ -4060,6 +4059,8 @@ test_102c() {
 run_test 102c "non-root getfattr/setfattr for lustre.lov EAs ==========="
 
 compare_stripe_info1() {
+       local stripe_index_all_zero=1
+
        for num in 1 2 3 4
        do
                for count in `seq 1 $STRIPE_COUNT`
@@ -4076,11 +4077,13 @@ compare_stripe_info1() {
                                        error "$file: different stripe count $stripe_count, expected $count" && return
                                fi
                                if [ $stripe_index -ne 0 ]; then
-                                       error "$file: different stripe offset $stripe_index, expected 0" && return
+                                      stripe_index_all_zero=0
                                fi
                        done
                done
        done
+       [ $stripe_index_all_zero -eq 1 ] && error "all files are being extracted starting from OST index 0"
+       return 0
 }
 
 compare_stripe_info2() {