From a29e650da0965bb8bde8459fae0203cce83fe738 Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 27 Feb 2008 21:40:59 +0000 Subject: [PATCH] b=14978 i=Adilger check whether proc files exist; error if they do not exist --- lustre/tests/sanity.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index f700fed..c5e3d1b 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -2579,8 +2579,10 @@ run_test 56o "check lfs find -mtime for old files ==========================" test_57a() { # note test will not do anything if MDS is not local remote_mds && skip "remote MDS" && return - - for DEV in `cat $LPROC/mds/*/mntdev`; do + local MNTDEV="$LPROC/osd/*MDT*/mntdev" + DEV=$(cat $MNTDEV) + [ -z "$DEV" ] && error "can't access $MNTDEV" + for DEV in `cat $MNTDEV`; do dumpe2fs -h $DEV > $TMP/t57a.dump || error "can't access $DEV" DEVISIZE=`awk '/Inode size:/ { print $3 }' $TMP/t57a.dump` [ "$DEVISIZE" -gt 128 ] || error "inode size $DEVISIZE" -- 1.8.3.1