+31
−0
Loading
For FIO_IOOPS_VERSION >= 34 fio supports multiple ranges per trim request. fio option num_range can be used to specify that. If multiple ranges are specified the io_u data buffer contains the start offset and number of bytes to be trimmed for each range. This commit adds the necessary changes to support multi range trim by: * allocating per IO request dsm range buffer with correct size. * parsing the io_u data buffer and creating the trim request. Change-Id: Ied274feeaba6dc36cab157ffd217730f9560da73 Signed-off-by:Ankit Kumar <ankit.kumar@samsung.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22890 Reviewed-by:
Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com>