From: Jens Axboe <jens.axboe@oracle.com>
To: John Cagle <jcagle@gmail.com>
Cc: fio@vger.kernel.org
Subject: Re: "directory=" option not working??
Date: Mon, 27 Apr 2009 08:00:43 +0200 [thread overview]
Message-ID: <20090427060043.GU4593@kernel.dk> (raw)
In-Reply-To: <20090426063718.GQ4593@kernel.dk>
On Sun, Apr 26 2009, Jens Axboe wrote:
> On Sat, Apr 25 2009, John Cagle wrote:
> > More info: It looks like the [global] filename is not affected by the
> > [global] directory, but if you move the filename down into a job
> > section, it will get the directory name prepended...
>
> Ah, good catch! Fio does do sorting, but not across sections. Weird that
> in then fails for global, I'll take a look at this tomorrow.
Not sure what happened there, but this will make it work. The case that
will still not work is this:
[global]
...
filename=foo
[job]
directory=/bar
I'll commit this patch and consider a way to fix the above.
diff --git a/options.c b/options.c
index 21de222..9267f79 100644
--- a/options.c
+++ b/options.c
@@ -605,7 +605,7 @@ static struct fio_option options[] = {
.type = FIO_OPT_STR_STORE,
.off1 = td_var_offset(filename),
.cb = str_filename_cb,
- .prio = 1, /* must come before "directory" */
+ .prio = -1, /* must come after "directory" */
.help = "File(s) to use for the workload",
},
{
--
Jens Axboe
prev parent reply other threads:[~2009-04-27 6:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-26 2:38 "directory=" option not working?? John Cagle
2009-04-26 2:48 ` John Cagle
2009-04-26 6:37 ` Jens Axboe
2009-04-27 6:00 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090427060043.GU4593@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=fio@vger.kernel.org \
--cc=jcagle@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.