Skip to content

Commit

Permalink
fio: job file search path
Browse files Browse the repository at this point in the history
Search job file in order of

1) current directory
2) parent directory
3) base directory
  • Loading branch information
Wu Fengguang committed Nov 17, 2011
1 parent 3c5014b commit 1ea48b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dd-common.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

run_fio() {
fio $BASE_DIR/$job 2>&1 > fio.log &
local job_file=$job
[[ -f $job_file ]] || job_file=../$job
[[ -f $job_file ]] || job_file=$BASE_DIR/$job

fio $job_file 2>&1 > fio.log &
pid=$!

sleep 10
Expand Down

0 comments on commit 1ea48b5

Please sign in to comment.