Flexible I/O Tester development
 help / color / mirror / Atom feed
* Cannot verify dedupe data, is it a bug?
@ 2018-10-17 12:30 Changyu
  2018-10-17 18:32 ` Sitsofe Wheeler
  0 siblings, 1 reply; 5+ messages in thread
From: Changyu @ 2018-10-17 12:30 UTC (permalink / raw)
  To: fio

Hi,

I set "dedupe_percentage " to let FIO generate some duplicated data.  I also want read these data back and verify it.
But, there is no duplicated data after setting "verify" parameter.

checking the source code, I found that  function do_io  in file backend.c fill the buffer twice. the source code is as below.

do_io()
{
    io_u = get_io_u(td);
    .....
    if (io_u->ddir == DDIR_WRITE && td->flags & TD_F_DO_VERIFY)
        populate_verify_io_u(td, io_u);
}

In function get_io_u, the buffer is filled with data as the "dedupe_percentage " specified.
In function populate_verify_io_u, the buffer is refilled with random data. So, there would be no duplicated data.

Is this a bug?

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

end of thread, other threads:[~2018-10-18 14:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-17 12:30 Cannot verify dedupe data, is it a bug? Changyu
2018-10-17 18:32 ` Sitsofe Wheeler
2018-10-17 19:05   ` Jens Axboe
2018-10-18  8:16     ` Changyu
2018-10-18 14:31       ` Jens Axboe

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