Flexible I/O Tester development
 help / color / mirror / Atom feed
* "directory=" option not working??
@ 2009-04-26  2:38 John Cagle
  2009-04-26  2:48 ` John Cagle
  0 siblings, 1 reply; 4+ messages in thread
From: John Cagle @ 2009-04-26  2:38 UTC (permalink / raw)
  To: fio

I just tried the new ssd-test config file, and it uses a "directory="
option in the global section.

I specify "directory=/mnt" but it doesn't work.  I have an SSD mounted
at /mnt, but the files created by fio keep appearing in the cwd.

Can someone double check this on their system?  I'm working with the
latest source of fio, building it on Ubuntu x86_64.

John

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "directory=" option not working??
  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
  0 siblings, 1 reply; 4+ messages in thread
From: John Cagle @ 2009-04-26  2:48 UTC (permalink / raw)
  To: fio

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...

John

On Sat, Apr 25, 2009 at 9:38 PM, John Cagle <jcagle@gmail.com> wrote:
> I just tried the new ssd-test config file, and it uses a "directory="
> option in the global section.
>
> I specify "directory=/mnt" but it doesn't work. �I have an SSD mounted
> at /mnt, but the files created by fio keep appearing in the cwd.
>
> Can someone double check this on their system? �I'm working with the
> latest source of fio, building it on Ubuntu x86_64.
>
> John

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "directory=" option not working??
  2009-04-26  2:48 ` John Cagle
@ 2009-04-26  6:37   ` Jens Axboe
  2009-04-27  6:00     ` Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2009-04-26  6:37 UTC (permalink / raw)
  To: John Cagle; +Cc: fio

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.

> 
> John
> 
> On Sat, Apr 25, 2009 at 9:38 PM, John Cagle <jcagle@gmail.com> wrote:
> > I just tried the new ssd-test config file, and it uses a "directory="
> > option in the global section.
> >
> > I specify "directory=/mnt" but it doesn't work. �I have an SSD mounted
> > at /mnt, but the files created by fio keep appearing in the cwd.
> >
> > Can someone double check this on their system? �I'm working with the
> > latest source of fio, building it on Ubuntu x86_64.
> >
> > John
> --
> To unsubscribe from this list: send the line "unsubscribe fio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "directory=" option not working??
  2009-04-26  6:37   ` Jens Axboe
@ 2009-04-27  6:00     ` Jens Axboe
  0 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2009-04-27  6:00 UTC (permalink / raw)
  To: John Cagle; +Cc: fio

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-27  6:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox