This file is indexed.

/var/lib/pcp/testsuite/164 is in pcp-testsuite 3.8.12ubuntu1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#! /bin/sh
# PCP QA Test No. 164
# exercise diskstat
#
# Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.

seq=`basename $0`
echo "QA output created by $seq"

if which diskstat >/dev/null 2>&1
then
    :
else
    echo "No diskstat binary installed" >$seq.notrun
    echo "$seq: [not run] `cat $seq.notrun`"
    exit 0
fi

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

status=0	# success is the default!
$sudo rm -rf $tmp.*
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

# real QA test starts here

pmdumplog -z -a src/kenj-pc-diskstat disk >$tmp.out
awk <$tmp.out '/^[0-1].*\(disk.dev.read\)/	{ print NR }' >$tmp.tmp
echo "=== first sample ==="
f=`sed 1q $tmp.tmp`
l=`sed -e 1d -e 2q $tmp.tmp`
l=`expr $l - 2`
sed -n -e "$f,${l}p" $tmp.out

echo "=== last sample ==="
f=`tail -1 <$tmp.tmp`
sed -n -e "$f,\$p" $tmp.out

echo
echo "=== pmval ==="
pmval -z -t 10 -S 10 -a src/kenj-pc-diskstat disk.dev.total

echo
echo "=== diskstat ==="
diskstat -z -t 10 -S 10 -a src/kenj-pc-diskstat

echo
echo "=== diskstat -i ==="
diskstat -z -i -t 10 -S 10 -a src/kenj-pc-diskstat

echo
echo "=== diskstat -x ==="
diskstat -z -x -t 10 -S 10 -a src/kenj-pc-diskstat

# success, all done
exit