Add HOWTO section on include files
authorAndrey Kuzmin <andrey.v.kuzmin@gmail.com>
Fri, 26 Sep 2014 19:29:15 +0000 (13:29 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 26 Sep 2014 19:29:15 +0000 (13:29 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
HOWTO

diff --git a/HOWTO b/HOWTO
index 23746cec199e05c6a34ed007794f5c45abc6e8e5..887c276a822114ec1fb739f763fed59d6a3d7cc1 100644 (file)
--- a/HOWTO
+++ b/HOWTO
@@ -159,6 +159,40 @@ specify:
 
 $ fio --name=random-writers --ioengine=libaio --iodepth=4 --rw=randwrite --bs=32k --direct=0 --size=64m --numjobs=4
 
+When fio is utilized as a basis of any reasonably large test suite, it might be
+desirable to share a set of standardized settings across multiple job files.
+Instead of copy/pasting such settings, any section may pull in an external
+.fio file with 'include filename' directive, as in the following example:
+
+; -- start job file including.fio --
+[global]
+filename=/tmp/test
+filesize=1m
+include glob-include.fio
+
+[test]
+rw=randread
+bs=4k
+time_based=1
+runtime=10
+include test-include.fio
+; -- end job file including.fio --
+
+; -- start job file glob-include.fio --
+thread=1
+group_reporting=1
+; -- end job file glob-include.fio --
+
+; -- start job file test-include.fio --
+ioengine=libaio
+iodepth=4
+; -- end job file test-include.fio --
+
+Settings pulled into a section apply to that section only (except global
+section). Include directives may be nested in that any included file may
+contain further include directive(s).
+
+
 4.1 Environment variables
 -------------------------