X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Frun-llog.sh;h=b7201f269427811e2403b6e7e4a99659278494b1;hb=2dc9c16e770415d56839e1996015fec5fab93f29;hp=5d46e2b16651cabb3248d2443179bb701b9b2641;hpb=401deb5075f9ab7f6c8c1831c56a84b0134e923c;p=fs%2Flustre-release.git diff --git a/lustre/tests/run-llog.sh b/lustre/tests/run-llog.sh index 5d46e2b..b7201f2 100644 --- a/lustre/tests/run-llog.sh +++ b/lustre/tests/run-llog.sh @@ -2,7 +2,7 @@ PATH=`dirname $0`:`dirname $0`/../utils:$PATH TMP=${TMP:-/tmp} -MDS=`ls /proc/fs/lustre/mds | grep -v num_refs | head -1` +MDS=`ls /proc/fs/lustre/mds | grep -v num_refs | head -n 1` [ -z "$MDS" ] && echo "no MDS available, skipping llog test" && exit 0 insmod ../obdclass/llog_test.o || exit 1