Skip to content

Commit 88767d2

Browse files
committed
added missing -w opt argument
added missing -w opt argument
1 parent acf3290 commit 88767d2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

fio.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ INITIALIZE=0
3131
REMOVE=0
3232
BINARY=`which fio`
3333
DIRECTORY="/domain0/fiotest"
34+
DIRECTORY=`pwd`/workdir
3435
OUTPUT="."
3536
TESTS="all"
3637
SECS="60"
@@ -96,12 +97,13 @@ OPTIONS:
9697
-r raw_device use raw device instead of file, multi devices colon separated
9798
9899
example
99-
fio.sh ./fio.opensolaris /domain0/fiotest -t rand_read -s 10 -m 1000 -f
100+
fio.sh ./fio.opensolaris /domain0/fiotest -t randread -s 10 -m 1000 -f
100101
EOF
101102
}
102103

103-
while getopts hz:ycb:nr:xe:d:o:it:s:l:u:m:f OPTION
104+
while getopts hz:ycb:nr:xe:d:w:o:it:s:l:u:m:f OPTION
104105
do
106+
echo "ops $OPTION"
105107
case $OPTION in
106108
h)
107109
usage
@@ -112,6 +114,7 @@ do
112114
;;
113115
w)
114116
DIRECTORY=$OPTARG
117+
echo "DIRECTORY=$OPTARG"
115118
;;
116119
o)
117120
OUTPUT=$OPTARG
@@ -781,3 +784,4 @@ if [ $REMOVE == 1 ] && [ $RAW == 0 ] ; then # {
781784
fi # }
782785
./fioparse.sh $OUTPUT/*out > $OUTPUT/fio_summary.out
783786
cat $OUTPUT/fio_summary.out
787+

0 commit comments

Comments
 (0)