Whamcloud - gitweb
Branch HEAD
authorbobijam <bobijam>
Fri, 26 Jun 2009 01:07:52 +0000 (01:07 +0000)
committerbobijam <bobijam>
Fri, 26 Jun 2009 01:07:52 +0000 (01:07 +0000)
b=16317
i=adilger

add conf-sanity test_44.

lustre/tests/conf-sanity.sh

index 19528e7..4e35d50 100644 (file)
@@ -1561,6 +1561,23 @@ run_test 43 "check root_squash and nosquash_nids"
 umount_client $MOUNT
 cleanup_nocli
 
 umount_client $MOUNT
 cleanup_nocli
 
+test_44() { # 16317
+        setup
+        check_mount || return 2
+        UUID=$($LCTL get_param llite.${FSNAME}*.uuid | cut -d= -f2)
+        STATS_FOUND=no
+        UUIDS=$(do_facet mds "$LCTL get_param mdt.${FSNAME}*.exports.*.uuid")
+        for VAL in $UUIDS; do
+                NID=$(echo $VAL | cut -d= -f1)
+                CLUUID=$(echo $VAL | cut -d= -f2)
+                [ "$UUID" = "$CLUUID" ] && STATS_FOUND=yes && break
+        done
+        [ "$STATS_FOUND" = "no" ] && error "stats not found for client"
+        cleanup
+        return 0
+}
+run_test 44 "mounted client proc entry exists"
+
 test_45() { #17310
         setup
         check_mount || return 2
 test_45() { #17310
         setup
         check_mount || return 2