3 ##############################################################################
4 # Copyright (c) 2015 Huawei Technologies Co.,Ltd.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
14 # Commandline arguments
19 # setup data file for fio
22 if [ ! -f $FIO_FILENAME ]; then
23 dd if=/dev/zero of=$FIO_FILENAME bs=1M count=1024 oflag=direct > /dev/null 2>&1
27 # run fio test and write json format result to stdout