X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllmountcleanup.sh;h=076faa7be7c1fe7dea8fdf9ec1e261fcbb690679;hb=b1e3e330d945a2ce78b7a0d794006c2b00698013;hp=11de094321b4756b912c63f28c3f571963041e87;hpb=837566721b87ec721a8c0d065241491d121cfbc5;p=fs%2Flustre-release.git diff --git a/lustre/tests/llmountcleanup.sh b/lustre/tests/llmountcleanup.sh index 11de094..076faa7 100755 --- a/lustre/tests/llmountcleanup.sh +++ b/lustre/tests/llmountcleanup.sh @@ -1,68 +1,10 @@ -#!/bin/sh +#!/bin/bash +export PATH=`dirname $0`/../utils:$PATH +NAME=${NAME:-local} -SRCDIR="`dirname $0`/" -. $SRCDIR/common.sh +LUSTRE=${LUSTRE:-`dirname $0`/..} +. $LUSTRE/tests/test-framework.sh +init_test_env $@ +. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} -$DBGCTL get_debug > /tmp/debug.1 - -if mount | grep '/mnt/lustre'; then - umount /mnt/lustre || fail "cannot unmount" -fi - -killall acceptor -rmmod llite -rmmod mdc - -$OBDCTL < /tmp/debug.2 - -$PTLCTL <