filesetup: add engine's io_ops to prepopulate file with data
authorŁukasz Stolarczuk <lukasz.stolarczuk@intel.com>
Fri, 22 Jan 2021 12:12:43 +0000 (13:12 +0100)
committerŁukasz Stolarczuk <lukasz.stolarczuk@intel.com>
Tue, 9 Feb 2021 11:55:05 +0000 (12:55 +0100)
commit8c47cc769b01f61e82210d098532cc0202146ca3
treef53d2e1bb24b04682ead44ce921fa8a56681a232
parent2ef3c1b02473a14bf7b8b52e28d0cdded9c5cc9a
filesetup: add engine's io_ops to prepopulate file with data

In some cases (e.g. engine marked as diskless) files are not laid out.
If the first job is a read job, results are higher than expected
(because reading zero page). Each engine should deliver func to
prepopulate file with data to avoid this situation.

Signed-off-by: Łukasz Stolarczuk <lukasz.stolarczuk@intel.com>
engines/libpmem.c
file.h
filesetup.c
ioengines.h