From: adilger Date: Tue, 12 Apr 2005 09:36:16 +0000 (+0000) Subject: Branch: b1_4 X-Git-Tag: v1_8_0_110~486^7~24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=2899d645bce153bdb0afd0a125e2b903a2d3fc44;p=fs%2Flustre-release.git Branch: b1_4 Grab some extra debugging for bug 5195 in case it is a real bug and not just write flush race because we can't stop kupdated. b=5195 --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 6187837..915860e 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -1478,13 +1478,19 @@ test_42b() { BEFOREWRITES=`count_ost_writes` $MUNLINK $DIR/f42b || error "$MUNLINK $DIR/f42b: $?" AFTERWRITES=`count_ost_writes` - [ $BEFOREWRITES -eq $AFTERWRITES ] || - error "$BEFOREWRITES < $AFTERWRITES on unlink" + if [ $BEFOREWRITES -lt $AFTERWRITES ]; then + error "$BEFOREWRITES < $AFTERWRITES on unlink" + $LCTL dk | sort -k 4 -t: | gzip -9 > $TMP/debug-unlk.bug5195.gz + error "please put $TMP/debug-unlk.bug5195.gz on bug 5195 once" + fi BEFOREWRITES=`count_ost_writes` sync || error "sync: $?" AFTERWRITES=`count_ost_writes` - [ $BEFOREWRITES -eq $AFTERWRITES ] || - error "$BEFOREWRITES < $AFTERWRITES on sync" + if [ $BEFOREWRITES -lt $AFTERWRITES ]; then + error "$BEFOREWRITES < $AFTERWRITES on sync" + $LCTL dk | sort -k 4 -t: | gzip -9 > $TMP/debug-sync.bug5195.gz + error "please put $TMP/debug-sync.bug5195.gz on bug 5195 once" + fi dmesg | grep 'error from obd_brw_async' && error 'error writing back' start_writeback return 0