backend: Logging exec_{pre|post}run
authorErwan Velu <erwan@enovance.com>
Wed, 17 Jul 2013 21:04:46 +0000 (23:04 +0200)
committerErwan Velu <erwan@enovance.com>
Wed, 17 Jul 2013 21:16:31 +0000 (23:16 +0200)
commitce4864950d2ced54e0a1ccb8ef9a1e62135f1d2d
tree647d1a4db9f658a9e9edb570449c8dd79bc1af17
parent8d271b66d2bc1025f760d3c5a976dac42262a178
backend: Logging exec_{pre|post}run

When using the exec_{pre|post}run option in fio jobs, it's very
important being able to read the output of thoses commands later.

As the output could be very verbose, let's log all the output of the
command in separate file.

As an example, when running two jobs called "write" and "read" the
exec_prerun option is used. During fio's execution, the following
message will be shown :
write : Saving output of prerun in write.prerun.txt
read : Saving output of prerun in read.prerun.txt

The output filename is so composed of the job name appended with the pre
or post run name and a final .txt extension.

That's pretty simple and shall do the job.
backend.c
fio.1