Cannot verify dedupe data, is it a bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux