2009-01-16 20:19:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Usage: zpios
|
2009-02-19 22:51:40 +00:00
|
|
|
# --threadcount -t =values
|
|
|
|
# --threadcount_low -l =value
|
|
|
|
# --threadcount_high -h =value
|
|
|
|
# --threadcount_incr -e =value
|
|
|
|
# --regioncount -n =values
|
|
|
|
# --regioncount_low -i =value
|
|
|
|
# --regioncount_high -j =value
|
|
|
|
# --regioncount_incr -k =value
|
|
|
|
# --offset -o =values
|
|
|
|
# --offset_low -m =value
|
|
|
|
# --offset_high -q =value
|
|
|
|
# --offset_incr -r =value
|
|
|
|
# --chunksize -c =values
|
|
|
|
# --chunksize_low -a =value
|
|
|
|
# --chunksize_high -b =value
|
|
|
|
# --chunksize_incr -g =value
|
|
|
|
# --regionsize -s =values
|
|
|
|
# --regionsize_low -A =value
|
|
|
|
# --regionsize_high -B =value
|
|
|
|
# --regionsize_incr -C =value
|
|
|
|
# --load -L =dmuio|ssf|fpp
|
|
|
|
# --pool -p =pool name
|
|
|
|
# --cleanup -x
|
|
|
|
# --prerun -P =pre-command
|
|
|
|
# --postrun -R =post-command
|
|
|
|
# --log -G =log directory
|
|
|
|
# --regionnoise -I =shift
|
|
|
|
# --chunknoise -N =bytes
|
|
|
|
# --threaddelay -T =jiffies
|
|
|
|
# --verify -V
|
|
|
|
# --zerocopy -z
|
|
|
|
# --nowait -O
|
|
|
|
# --human-readable -H
|
|
|
|
# --verbose -v =increase verbosity
|
|
|
|
# --help -? =this help
|
|
|
|
|
2009-01-16 20:19:15 +00:00
|
|
|
|
|
|
|
ZPIOS_CMD="${CMDDIR}/zpios/zpios \
|
|
|
|
--load=dmuio \
|
2009-02-19 22:51:40 +00:00
|
|
|
--pool=${ZPOOL_NAME} \
|
2009-01-20 22:32:02 +00:00
|
|
|
--threadcount=1 \
|
|
|
|
--regioncount=16 \
|
2009-01-16 20:19:15 +00:00
|
|
|
--regionsize=4M \
|
2009-01-20 22:32:02 +00:00
|
|
|
--chunksize=1M \
|
2009-01-16 20:19:15 +00:00
|
|
|
--offset=4M \
|
2009-02-19 22:51:40 +00:00
|
|
|
--cleanup \
|
2009-01-16 20:19:15 +00:00
|
|
|
--verbose \
|
|
|
|
--human-readable \
|
2009-01-16 21:56:14 +00:00
|
|
|
${ZPIOS_OPTIONS}"
|
2009-01-20 22:32:02 +00:00
|
|
|
|
|
|
|
zpios_start() {
|
|
|
|
echo ${ZPIOS_CMD}
|
2009-01-20 23:34:02 +00:00
|
|
|
${ZPIOS_CMD} || exit 1
|
2009-01-20 22:32:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
zpios_stop() {
|
2009-01-20 23:34:02 +00:00
|
|
|
echo
|
2009-01-20 22:32:02 +00:00
|
|
|
}
|