genfio: Use dynamic default values in help
authorErwan Velu <erwan@enovance.com>
Mon, 15 Jul 2013 10:03:55 +0000 (12:03 +0200)
committerErwan Velu <erwan@enovance.com>
Sun, 21 Jul 2013 09:58:49 +0000 (11:58 +0200)
To avoid mismatch between default values and help, let's print directly
the default value of the option.

tools/genfio

index 0bc24cb1d475e43d413b50c3c488cd6ae14c6865..512313a7ab16cb22d764389df50fd37835f816d7 100755 (executable)
@@ -50,18 +50,18 @@ show_help() {
                                        one test after anoter but all disks at the same time
                                        Enabled by default
 -D iodepth                     : Run with the specified iodepth
                                        one test after anoter but all disks at the same time
                                        Enabled by default
 -D iodepth                     : Run with the specified iodepth
-                                       Default is 32
+                                       Default is $IODEPTH
 -d disk1[,disk2,disk3,..]      : Run the tests on the selected disks
                                        Separated each disk with a comma
                                        Disk name shall be "sdxx", /dev/ shall NOT be used here
 -r seconds                     : Time in seconds per benchmark
                                        0 means till the end of the device
 -d disk1[,disk2,disk3,..]      : Run the tests on the selected disks
                                        Separated each disk with a comma
                                        Disk name shall be "sdxx", /dev/ shall NOT be used here
 -r seconds                     : Time in seconds per benchmark
                                        0 means till the end of the device
-                                       Default is 300 seconds
+                                       Default is $RUNTIME seconds
 -b blocksize[,blocksize1, ...]  : The blocksizes to test under fio format (4k, 1m, ...)
                                        Separated each blocksize with a comma
 -b blocksize[,blocksize1, ...]  : The blocksizes to test under fio format (4k, 1m, ...)
                                        Separated each blocksize with a comma
-                                       Default is 4k
+                                       Default is $BLOCK_SIZE
 -m mode1,[mode2,mode3, ...]     : Define the fio IO profile to use like read, write, randread, randwrite
 -m mode1,[mode2,mode3, ...]     : Define the fio IO profile to use like read, write, randread, randwrite
-                                       Default is "write,randwrite,read,randread"
+                                       Default is "$MODES"
 -x prefix                      : Add a prefix to the fio filename
                                        Useful to let a context associated with the file
                                        If the prefix features a / (slash), prefix will be considered as a directory
 -x prefix                      : Add a prefix to the fio filename
                                        Useful to let a context associated with the file
                                        If the prefix features a / (slash), prefix will be considered as a directory