Debian Codegraph @

nfsometerlib/workloads/custom.nfsometer

raw
1 #
2 # RUNDIR - a newly created directory on the nfs share.
3 # will exist only when running COMMAND.
4 #
5 # LOCALDIR - a directory on the local fs meant to serve as storage space for
6 # the fetch stage and setup() call
7 # will exist for setup, fetch stages and when COMMAND is run, but
8 # not durning check().
9 #
10
11 #
12 # the command to run
13 #
14 COMMAND="$NFSOMETER_CMD"
15
16 #
17 # command description
18 #
19
20 NAME="Custom: $NFSOMETER_CMD"
21 if [ -n "$NFSOMETER_NAME" ]; then
22 NAME="$NFSOMETER_NAME"
23 fi
24
25 DESCRIPTION="Custom workload: $NFSOMETER_CMD"
26 if [ -n "$NFSOMETER_DESC" ]; then
27 DESCRIPTION="$NFSOMETER_DESC"
28 fi
29
30 # workload_check()
31 # - no arguments
32 # - any output to stdout means the check failed
33 # - use need_* functions from workloads.sh
34 workload_check()
35 {
36 need_env "NFSOMETER_CMD"
37 }
38
39 # workload_setup()
40 # - no arguments
41 # - non-zero return indicates a problem
42 workload_setup()
43 {
44 return 0
45 }
46
47