Report on whether XFS was built debug or not for XFS benchmark runs

This commit is contained in:
fsgqa
2003-09-19 06:09:47 +00:00
parent 1e9cf89f83
commit 97c3695336
+7
View File
@@ -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
}