Add filename_format option
[fio.git] / options.c
index 3eb5fdc933bfd9ddc940ceab5e0ba25eb9c14b10..bca217f6466ca8c80086f733726c924651fcdd09 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1131,6 +1131,14 @@ static struct fio_option options[FIO_MAX_OPTS] = {
                .prio   = -1, /* must come after "directory" */
                .help   = "File(s) to use for the workload",
        },
+       {
+               .name   = "filename_format",
+               .type   = FIO_OPT_STR_STORE,
+               .off1   = td_var_offset(filename_format),
+               .prio   = -1, /* must come after "directory" */
+               .help   = "Override default $jobname.$jobnum.$filenum naming",
+               .def    = "$jobname.$jobnum.$filenum",
+       },
        {
                .name   = "kb_base",
                .type   = FIO_OPT_INT,