X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=tools%2Fgenfio;h=c9bc2f764d68dd9f412c712b0a1dba5d0416a90e;hb=b3d5e3fd80e3834097578e92d1b788065b8346e1;hp=8518bbccf33a3111f097eb8221f14dbdb0f5b01b;hpb=10ee8843e79763e8b6ff967f8a2b5d5b92411f90;p=fio.git diff --git a/tools/genfio b/tools/genfio index 8518bbcc..c9bc2f76 100755 --- a/tools/genfio +++ b/tools/genfio @@ -22,7 +22,8 @@ BLK_SIZE= BLOCK_SIZE=4k SEQ=-1 -TEMPLATE=/tmp/template.fio +TEMPLATE=$(mktemp "${TMPDIR:-${TEMP:-/tmp}}/template.fio.XXXXXX") || exit $? +trap 'rm -f "$TEMPLATE"' EXIT OUTFILE= DISKS= PRINTABLE_DISKS= @@ -48,7 +49,7 @@ show_help() { one test after another then one disk after another Disabled by default -p : Run parallel test - one test after anoter but all disks at the same time + one test after another but all disks at the same time Enabled by default -D iodepth : Run with the specified iodepth Default is $IODEPTH