Whamcloud - gitweb
b=14978
authorgrev <grev>
Wed, 27 Feb 2008 21:42:42 +0000 (21:42 +0000)
committergrev <grev>
Wed, 27 Feb 2008 21:42:42 +0000 (21:42 +0000)
i=Adilger

check whether proc files exist; error if they do not exist

lustre/tests/sanity.sh

index 7b7f9dc..dcdf12b 100644 (file)
@@ -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"