Tweak bench script output format

This commit is contained in:
fsgqa
2003-09-01 22:44:21 +00:00
parent 6c6ba523c2
commit 95b9190a1d
+9 -3
View File
@@ -163,23 +163,29 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_require_scratch
rm -f bench.* results.*
_full_platform_details()
_full_fstyp_details()
{
[ -z "$FSTYP" ] && FSTYP=xfs
echo $FSTYP
}
_full_platform_details()
{
os=`uname -s`
host=`hostname -s`
kernel=`uname -r`
platform=`uname -i`
echo "$os/$platform $host $kernel [FSTYP=$FSTYP]"
echo "$os/$platform $host $kernel"
}
FULL_FSTYP_DETAILS=`_full_fstyp_details`
FULL_HOST_DETAILS=`_full_platform_details`
FULL_MKFS_OPTIONS=`_scratch_mkfs_options`
FULL_MOUNT_OPTIONS=`_scratch_mount_options`
# $OUT is the report which will ultimately be sent, keep it tidy.
cat >$OUT <<EOF
FSTYP -- $FULL_FSTYP_DETAILS
PLATFORM -- $FULL_HOST_DETAILS
MKFS_OPTIONS -- $FULL_MKFS_OPTIONS
MOUNT_OPTIONS -- $FULL_MOUNT_OPTIONS