]> git.proxmox.com Git - mirror_zfs-debian.git/blob - scripts/zpios-test/1th-16rc-4rs-1cs-4off.sh
Merge branch 'upstream'
[mirror_zfs-debian.git] / scripts / zpios-test / 1th-16rc-4rs-1cs-4off.sh
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
42 ZPIOS_CMD="${ZPIOS} \
43 --load=dmuio \
44 --pool=${ZPOOL_NAME} \
45 --name=${ZPOOL_CONFIG} \
46 --threadcount=1 \
47 --regioncount=16 \
48 --regionsize=4M \
49 --chunksize=1M \
50 --offset=4M \
51 --cleanup \
52 --human-readable \
53 ${ZPIOS_OPTIONS}"
54
55 zpios_start() {
56 if [ ${VERBOSE} ]; then
57 ZPIOS_CMD="${ZPIOS_CMD} --verbose"
58 echo ${ZPIOS_CMD}
59 fi
60
61 ${ZPIOS_CMD} || exit 1
62 }
63
64 zpios_stop() {
65 [ ${VERBOSE} ] && echo
66 }