Whamcloud - gitweb
Branch HEAD
authoradilger <adilger>
Tue, 27 Nov 2007 00:32:57 +0000 (00:32 +0000)
committeradilger <adilger>
Tue, 27 Nov 2007 00:32:57 +0000 (00:32 +0000)
Don't test swap-on-lustre on TCP, as it can livelock allocating receive buffers.
b=14033
i=jay

lustre/tests/sanity.sh

index 6b2080f..2cd7334 100644 (file)
@@ -2830,6 +2830,9 @@ test_68() {
        grep -q llite_lloop /proc/modules
        [ $? -ne 0 ] && skip "can't find module llite_lloop" && return
 
+       [ -z "`$LCTL list_nids | grep -v tcp`" ] && \
+               skip "can't reliably test swap with TCP" && return
+
        MEMTOTAL=`meminfo MemTotal`
        NR_BLOCKS=$((MEMTOTAL>>8))
        [[ $NR_BLOCKS -le 2048 ]] && NR_BLOCKS=2048
@@ -3143,8 +3146,8 @@ run_test 76 "destroy duplicate inodes in client inode cache ===="
 export ORIG_CSUM=""
 set_checksums()
 {
-       [ "$ORIG_CSUM" ]||ORIG_CSUM=`cat $LPROC/llite/*/checksum_pages|head -n1`
-       for f in $LPROC/llite/*/checksum_pages; do
+       [ "$ORIG_CSUM" ] || ORIG_CSUM=`cat $LPROC/osc/*/checksums | head -n1`
+       for f in $LPROC/osc/*/checksums; do
                echo $1 >> $f
        done