Implement a better num2str()
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 7b03250bd22ddce7b01c6a3e8e306ca108ef447e..d20fc2451f551172328d44471aff3d3247fddda7 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -811,7 +811,8 @@ static int init_io_u(struct thread_data *td)
        if (allocate_io_mem(td))
                return 1;
 
-       if (td->o.odirect || td->o.mem_align)
+       if (td->o.odirect || td->o.mem_align ||
+           (td->io_ops->flags & FIO_RAWIO))
                p = PAGE_ALIGN(td->orig_buffer) + td->o.mem_align;
        else
                p = td->orig_buffer;