Report on whether XFS was built debug or not for XFS benchmark runs
authorfsgqa <fsgqa>
Fri, 19 Sep 2003 06:09:47 +0000 (06:09 +0000)
committerfsgqa <fsgqa>
Fri, 19 Sep 2003 06:09:47 +0000 (06:09 +0000)
bench

diff --git a/bench b/bench
index 968237f8c45dd1be7b10bf2692f2f5710bf6cbe5..30e2ab14a99b39fd756dcf2ada24314f88273877 100755 (executable)
--- a/bench
+++ b/bench
@@ -165,6 +165,13 @@ rm -f bench.* results.*
 _full_fstyp_details()
 {
     [ -z "$FSTYP" ] && FSTYP=xfs
+    if [ $FSTYP = xfs ]; then
+       if grep 'debug 0' /proc/fs/xfs/stat >/dev/null; then
+           FSTYP="$FSTYP (non-debug)"
+       elif grep 'debug 1' /proc/fs/xfs/stat >/dev/null; then
+           FSTYP="$FSTYP (debug)"
+       fi
+    fi
     echo $FSTYP
 }