From eafaf57640b13c830a7d65ca0ad0f2cf00c3895b Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 27 Feb 2008 21:42:42 +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 7b7f9dc..dcdf12b 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -2475,8 +2475,10 @@ run_test 56o "check lfs find -mtime for old files ==========================" test_57a() { remote_mds && skip "remote MDS" && return - - for DEV in `cat $LPROC/mds/*/mntdev`; do + local MNTDEV="$LPROC/mds/*/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