projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'patch-1' of https://github.com/antroseco/fio
[fio.git]
/
tools
/
genfio
diff --git
a/tools/genfio
b/tools/genfio
index 4d32d13084707103e5bd32beac10eb1156378e3e..8518bbccf33a3111f097eb8221f14dbdb0f5b01b 100755
(executable)
--- a/
tools/genfio
+++ b/
tools/genfio
@@
-1,4
+1,4
@@
-#!/
usr/bin/env
bash
+#!/
bin/
bash
#
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
# Author: Erwan Velu <erwan@enovance.com>
#
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
# Author: Erwan Velu <erwan@enovance.com>
@@
-17,7
+17,7
@@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 5
9 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+# Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
BLK_SIZE=
BLOCK_SIZE=4k
BLK_SIZE=
BLOCK_SIZE=4k
@@
-54,6
+54,8
@@
show_help() {
Default is $IODEPTH
-d disk1[,disk2,disk3,..] : Run the tests on the selected disks
Separated each disk with a comma
Default is $IODEPTH
-d disk1[,disk2,disk3,..] : Run the tests on the selected disks
Separated each disk with a comma
+-z filesize : Specify the working file size, if you are passing filepaths to -d
+ Disabled by default
-r seconds : Time in seconds per benchmark
0 means till the end of the device
Default is $RUNTIME seconds
-r seconds : Time in seconds per benchmark
0 means till the end of the device
Default is $RUNTIME seconds
@@
-203,7
+205,7
@@
esac
}
parse_cmdline() {
}
parse_cmdline() {
-while getopts "hacpsd:b:r:m:x:D:A:B:" opt; do
+while getopts "hacpsd:b:r:m:x:
z:
D:A:B:" opt; do
case $opt in
h)
show_help
case $opt in
h)
show_help
@@
-260,6
+262,10
@@
while getopts "hacpsd:b:r:m:x:D:A:B:" opt; do
A)
echo "exec_postrun=$OPTARG" >> $TEMPLATE
;;
A)
echo "exec_postrun=$OPTARG" >> $TEMPLATE
;;
+ z)
+ FSIZE=$OPTARG
+ echo "size=$FSIZE" >> $TEMPLATE
+ ;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;