]>
Commit | Line | Data |
---|---|---|
d3acc7fb PR |
1 | #!/bin/bash |
2 | # | |
3 | # Usage: zpios | |
4 | # --threadcount -t =values | |
5 | # --threadcount_low -l =value | |
6 | # --threadcount_high -h =value | |
7 | # --threadcount_incr -e =value | |
8 | # --regioncount -n =values | |
9 | # --regioncount_low -i =value | |
10 | # --regioncount_high -j =value | |
11 | # --regioncount_incr -k =value | |
12 | # --offset -o =values | |
13 | # --offset_low -m =value | |
14 | # --offset_high -q =value | |
15 | # --offset_incr -r =value | |
16 | # --chunksize -c =values | |
17 | # --chunksize_low -a =value | |
18 | # --chunksize_high -b =value | |
19 | # --chunksize_incr -g =value | |
20 | # --regionsize -s =values | |
21 | # --regionsize_low -A =value | |
22 | # --regionsize_high -B =value | |
23 | # --regionsize_incr -C =value | |
24 | # --load -L =dmuio|ssf|fpp | |
25 | # --pool -p =pool name | |
26 | # --name -M =test name | |
27 | # --cleanup -x | |
28 | # --prerun -P =pre-command | |
29 | # --postrun -R =post-command | |
30 | # --log -G =log directory | |
31 | # --regionnoise -I =shift | |
32 | # --chunknoise -N =bytes | |
33 | # --threaddelay -T =jiffies | |
34 | # --verify -V | |
35 | # --zerocopy -z | |
36 | # --nowait -O | |
37 | # --human-readable -H | |
38 | # --verbose -v =increase verbosity | |
39 | # --help -? =this help | |
40 | ||
41 | ZPIOS_CMD="${ZPIOS} \ | |
42 | --load=dmuio \ | |
43 | --pool=${ZPOOL_NAME} \ | |
44 | --name=${ZPOOL_CONFIG} \ | |
45 | --threadcount=4 \ | |
46 | --regioncount=1024 \ | |
47 | --regionsize=4M \ | |
48 | --chunksize=1M \ | |
49 | --offset=4M \ | |
50 | --cleanup \ | |
51 | --human-readable \ | |
52 | ${ZPIOS_OPTIONS}" | |
53 | ||
54 | zpios_start() { | |
55 | if [ ${VERBOSE} ]; then | |
56 | ZPIOS_CMD="${ZPIOS_CMD} --verbose" | |
57 | echo ${ZPIOS_CMD} | |
58 | fi | |
59 | ||
60 | ${ZPIOS_CMD} || exit 1 | |
61 | } | |
62 | ||
63 | zpios_stop() { | |
64 | [ ${VERBOSE} ] && echo | |
65 | } |