Flexible I/O Tester development
 help / color / mirror / Atom feed
* [PATCH] Add code for verify_dump option
@ 2011-10-25 20:33 Steven Lang
  2011-10-25 20:39 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Lang @ 2011-10-25 20:33 UTC (permalink / raw)
  To: fio; +Cc: Jens Axboe

The verify_dump option is defined and documented, but does nothing.
This one-liner enables the option.

One thing I wanted to open a small discussion on is the default
behavior.  When the verify dump behavior was added, it was something
new, so it seems more sensible to disable it by default to keep the
old behavior; and had it been in for less time I might have been
tempted to include that in the patch.  However, even ignoring the
change in behavior, it seems odd and possibly surprising/unexpected to
someone who does not have experience with fio to have it suddenly spit
out extra files; all the other options to write files
(write_iolog/write_bw_log/write_lat_log) only write anything if
requested.  Is there a good argument to why this option would be
enabled by default?

diff --git a/verify.c b/verify.c
index 68ee60f..36b49f2 100644
--- a/verify.c
+++ b/verify.c
@@ -269,6 +269,9 @@ static void dump_verify_buffers(struct
verify_header *hdr, struct vcont *vc)
 	struct io_u dummy;
 	void *buf;

+        if (!vc->td->o.verify_dump)
+          return;
+
 	/*
 	 * Dump the contents we just read off disk
 	 */

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

* Re: [PATCH] Add code for verify_dump option
  2011-10-25 20:33 [PATCH] Add code for verify_dump option Steven Lang
@ 2011-10-25 20:39 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2011-10-25 20:39 UTC (permalink / raw)
  To: Steven Lang; +Cc: fio@vger.kernel.org

On 2011-10-25 22:33, Steven Lang wrote:
> The verify_dump option is defined and documented, but does nothing.
> This one-liner enables the option.
> 
> One thing I wanted to open a small discussion on is the default
> behavior.  When the verify dump behavior was added, it was something
> new, so it seems more sensible to disable it by default to keep the
> old behavior; and had it been in for less time I might have been
> tempted to include that in the patch.  However, even ignoring the
> change in behavior, it seems odd and possibly surprising/unexpected to
> someone who does not have experience with fio to have it suddenly spit
> out extra files; all the other options to write files
> (write_iolog/write_bw_log/write_lat_log) only write anything if
> requested.  Is there a good argument to why this option would be
> enabled by default?

Thanks, applied. You are right, it probably should have been off by
default, and in fact probably should be even now.

-- 
Jens Axboe


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

end of thread, other threads:[~2011-10-25 20:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-25 20:33 [PATCH] Add code for verify_dump option Steven Lang
2011-10-25 20:39 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox