AIORI AIO check params updated.

master
Julian M. Kunkel 2020-07-21 16:50:13 +01:00
parent e1741c188a
commit e3f302ca53
1 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,10 @@ static int aio_check_params(aiori_mod_opt_t * param){
aio_options_t * o = (aio_options_t*) param;
POSIX_check_params((aiori_mod_opt_t*) o->p);
if(o->max_pending < 8){
ERRF("max-pending = %d < 8", o->max_pending);
ERRF("AIO max-pending = %d < 8", o->max_pending);
}
if(o->granularity > o->max_pending){
ERRF("AIO granularity must be < max-pending, is %d > %d", o->granularity, o->max_pending);
}
return 0;
}