mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Minor xfstests tweaks - report kernel version in check as in bench.
This commit is contained in:
@@ -654,6 +654,28 @@ _check_scratch_fs()
|
||||
_check_filesystem $SCRATCH_DEV $SCRATCH_LOG
|
||||
}
|
||||
|
||||
_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
|
||||
}
|
||||
|
||||
_full_platform_details()
|
||||
{
|
||||
os=`uname -s`
|
||||
host=`hostname -s`
|
||||
kernel=`uname -r`
|
||||
platform=`uname -m`
|
||||
echo "$os/$platform $host $kernel"
|
||||
}
|
||||
|
||||
################################################################################
|
||||
|
||||
[ -d /usr/bsd ] && PATH=$PATH:/usr/bsd
|
||||
|
||||
Reference in New Issue
Block a user