axboe / fio

Flexible I/O Tester
GNU General Public License v2.0
5.21k stars 1.26k forks source link

Fix issue when start randwrite by using nfs engine #1776

Closed panxiao2014 closed 3 months ago

panxiao2014 commented 3 months ago

Fio would fail to stop jobs when set io mode other than write by using nfs engine. This fix can make sure randwrite works correctly since both write and randwrite will create file first and then start IO.

Note: for nfs engine, other IO modes which include read will require user to have the file ready before test start. If we want fio to setup and extend the file before job start, that would involve more code changes. The fix here only make randwrite would behave the same as write, and this should match what user should expect.