我正在尝试确定fio (github.com/axboe/fio)如何在使用libaio引擎时确定是否存在写入错误。
在linux kernel aio functionality的post中,我看到了回调函数work_done()中的错误检查示例,该函数检查io_getevents()返回的事件。
但是我在liaio.c (https://github.com/axboe/fio/blob/master/engines/libaio.c#L145)的fio_libaio_getevents()函数中找不到任何类似的错误检查。
我已从https://github.com/axboe/fio/blob/fio-2.17/README#L77写入邮件列表(fio@vger.kernel.org),但邮件退回。因此,任何帮助都将不胜感激。
提前谢谢。
发布于 2017-03-28 20:02:32
在struct iocb中,错误以res和res2的形式返回。在fio代码中,您可以看到在这里传入iocb数组,即ld->aio_events + events。
r = io_getevents(ld->aio_ctx, actual_min,
max, ld->aio_events + events, lt);在文件中的fio_libaio_event函数中检查了实际的错误。
https://stackoverflow.com/questions/43060485
复制相似问题