summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorAndrey Kuzmin <andrey.v.kuzmin@gmail.com>2015-12-22 09:21:25 -0700
committerJens Axboe <axboe@fb.com>2015-12-22 09:21:25 -0700
commit9cc8cb91d355d7e47d5b930b352087ec71f85f85 (patch)
tree3bd0e2fa8123e6c604784fe61b4300278dc1d0e8 /options.c
parentb5f4ef37543b46f9ef44cabf691a92d6592fb286 (diff)
downloadfio-9cc8cb91d355d7e47d5b930b352087ec71f85f85.tar.gz
fio-9cc8cb91d355d7e47d5b930b352087ec71f85f85.tar.bz2
Add support for waiting for other jobs by name
We have stonewall to barrier against previous jobs before a new job runs. This adds support for 'wait_for', which allows the user to explicitly wait for a given job before starting. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'options.c')
-rw-r--r--options.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/options.c b/options.c
index 84947139..49d66002 100644
--- a/options.c
+++ b/options.c
@@ -1229,6 +1229,15 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
.group = FIO_OPT_G_DESC,
},
{
+ .name = "wait_for",
+ .lname = "Waitee name",
+ .type = FIO_OPT_STR_STORE,
+ .off1 = td_var_offset(wait_for),
+ .help = "Name of the job this one wants to wait for before starting",
+ .category = FIO_OPT_C_GENERAL,
+ .group = FIO_OPT_G_DESC,
+ },
+ {
.name = "filename",
.lname = "Filename(s)",
.type = FIO_OPT_STR_STORE,