Implement support for the recently added fio .get_max_open_zones callback. If our ioengine does not implement this callback, fio will always result in an error when using --zonemode=zbd, on platforms which does not have a fio oslib implementation for this callback, e.g. FreeBSD. On Linux, fio will by default try to parse sysfs, which will of course not work on SPDK. Implement this callback so that our ioengine will be able to provide fio with the proper max open zones limit. This will ensure that fio will be able to fetch the proper max open zones limit, regardless of OS. While our SPDK nvme ioengine did overwrite the max_open_zones option if it was set to zero, this is a bit of a hack. The new fio callback is the proper way to inform fio about the max open zones limit, so that fio itself can have access to the actual device limit. (Just overwriting the requested max_open_zones option will not allow fio to know if the requested max_open_zones option exceeds the device limit.) Remove the SPDK specific hack and update our README.md accordingly. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: I532a0fa065b9e215ee6229b9100135e5403f198e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7898 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: John Kariuki <John.K.Kariuki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
abort | ||
arbitration | ||
cmb_copy | ||
fio_plugin | ||
hello_world | ||
hotplug | ||
identify | ||
nvme_manage | ||
perf | ||
pmr_persistence | ||
reconnect | ||
Makefile |