On 5/14/21 6:52 AM, Niklas Cassel wrote: > From: Niklas Cassel <niklas.cassel@xxxxxxx> > > Improve max open zones handling by introducing a new IO engine operation, > which can be implemented by ioengines. > > Also provide a default implementation for Linux, which parses sysfs for > the max open zones value. > > Update libzbc ioengine to utilize the new callback. > > Having this callback has the two following advantages: > > 1) If the user forgets to specify a --max_open_zones value, we will > automatically use the maximum the drive supports. > (Instead of getting errors because fio tries to open too many zones.) > > 2) If the user specifies a --max_open_zones value that is too big, > we will return an error and fio will exit with a proper error message. > (Instead of getting errors because fio tries to open too many zones.) Applied, thanks. -- Jens Axboe