iolog replay: Realloc io_u buffers to adapt to operation size.
authorAdam Kupczyk <akupczyk@redhat.com>
Thu, 9 Aug 2018 14:05:22 +0000 (16:05 +0200)
committerAdam Kupczyk <akupczyk@redhat.com>
Thu, 9 Aug 2018 14:15:56 +0000 (16:15 +0200)
commit71e6e5a2fd5c00ee42ecac36037a539fcad1efae
tree55852b066abf165826bc19e02457ffbe012624c8
parent230f33fbb6e0713d1189ea5d3295a8f536bac8d8
iolog replay: Realloc io_u buffers to adapt to operation size.

When iolog is read in chunked mode, some prefetching is done. Based on this size of buffers are determined.
Further operations may need larger buffers. If so, io_u buffers are reallocated.
Example that cause problem when read_iolog_chunked=1:
fio version 2 iolog
rbd_data.0 add
rbd_data.0 open
rbd_data.0 write 0 4096 (x20)
rbd_data.0 write 0 4096000 (x10)
rbd_data.0 close

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
backend.c
iolog.c
iolog.h