3 # Test XFS PMDA works in DSO mode for many PDU types.
5 # Copyright (c) 2014 Red Hat.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 [ $PCP_PLATFORM = linux
] || _notrun
"XFS PMDA is Linux-specific (uses procfs)"
19 $sudo rm -rf $tmp.
* $seq.full
20 trap "cd $here; $sudo rm -rf $tmp.*; exit \$status" 0 1 2 3 15
25 |
sed -e '/inst /s/\[[01] /[0-or-1 /'
28 # real QA test starts here
30 export XFS_STATSPATH
=$root
31 pmda
=$PCP_PMDAS_DIR/xfs
/pmda_xfs.so
,xfs_init
33 for tgz
in $here/linux
/xfs-
*.tgz
35 [ $tgz = "linux/xfs-*" ] && continue
38 mkdir
$root || _fail
"root in use when processing $tgz"
43 echo "== Checking metric descriptors and values - $base"
44 pminfo
-L -K clear -K add
,11,$pmda -dfmtT xfs | _filter
45 echo && echo "== done" && echo