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

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

lustre/tests/sanity.sh

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