This file is indexed.

/usr/share/doc/glusterfs/benchmarking/local-script.sh is in glusterfs-common 3.13.2-1build1.

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

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
#!/bin/sh

# This script needs to be present on glusterfs mount, (ie, on every node which wants to run benchmark)

ifilename="/dev/zero"
ofilename="testdir/testfile.$(hostname)"
result="output/output.$(hostname)"
blocksize=128k
count=8

mkdir -p testdir;
mkdir -p output;
echo > ${result}
while [ ! -e start-test ]; do
    sleep 1;
done;


for i in $(seq 1 5); do 
    # write
    dd if=${ifilename} of=${ofilename} bs=${blocksize} count=${count} 2>&1 | tail -n 1 | cut -f 8,9 -d ' ' >> ${result} ;
    # read
    #dd if=${ofilename} of=/dev/null bs=${blocksize} count=${count} 2>&1 | tail -n 1 | cut -f 8,9 -d ' ' >> ${result} ;
done

rm -f start-test