1 # $FreeBSD: head/tools/regression/pjdfstest/tests/conf 211354 2010-08-15 21:29:03Z pjd $
2 # vim: filetype=sh noexpandtab ts=8 sw=8
3 # pjdfstest configuration file
5 # Supported operating systems: FreeBSD, Darwin, SunOS, Linux
10 echo "Unsupported operating system ${os}." >/dev/stderr
18 df . | tail -1 | awk '{print $NF}'
29 #fs=`df -T . | tail -1 | awk '{print $2}'`
30 mountpoint="`get_mountpoint`"
31 fs=`mount | grep "on $mountpoint" | sed -e 's/.*(//' -e 's/,.*//g' | tr '[:lower:]' '[:upper:]'`
35 #fs=`df -T . | tail -1 | awk '{print $2}'`
36 mountpoint="`get_mountpoint`"
37 fs=`mount -p | awk '$2 == "'$mountpoint'" { print toupper($3) }'`
41 pattern=`df -Pk . | tail -1 | awk '{printf("%s on %s \n", $1, $6)}'`
42 fs=`mount -v | ${GREP} -E "^${pattern}" | awk '{print $5}' | \
43 tr -s '[:lower:]' '[:upper:]'`
47 fs=`df -PT . | tail -1 | awk '{print toupper($2)}'`
54 # If we cannot figure out file system type, define it here.
57 if [ -z "${fs}" ]; then
58 echo "Cannot figure out file system type, define it by hand." >/dev/stderr