Move checks before inititalization.

Add simple validation for S3.
master
Julian M. Kunkel 2020-11-22 11:43:42 +00:00
parent 5d489064d8
commit b5891141d8
3 changed files with 17 additions and 8 deletions

View File

@ -451,6 +451,16 @@ static IOR_offset_t S3_GetFileSize(aiori_mod_opt_t * options, char *testFileName
static int S3_check_params(aiori_mod_opt_t * options){
s3_options_t * o = (s3_options_t*) options;
if(o->access_key == NULL){
o->access_key = "";
}
if(o->secret_key == NULL){
o->secret_key = "";
}
if(o->host == NULL){
WARN("The S3 hostname should be specified");
}
return 0;
}

View File

@ -890,16 +890,15 @@ mdworkbench_results_t* md_workbench_run(int argc, char ** argv, MPI_Comm world_c
exit(1);
}
if (o.backend->initialize){
o.backend->initialize(o.backend_options);
}
if(o.backend->xfer_hints){
o.backend->xfer_hints(& o.hints);
}
if(o.backend->check_params){
o.backend->check_params(o.backend_options);
}
if (o.backend->initialize){
o.backend->initialize(o.backend_options);
}
int current_index = 0;

View File

@ -1981,16 +1981,16 @@ mdtest_results_t * mdtest_run(int argc, char **argv, MPI_Comm world_com, FILE *
MPI_Comm_rank(testComm, &rank);
MPI_Comm_size(testComm, &size);
if (backend->initialize){
backend->initialize(backend_options);
}
if(backend->xfer_hints){
backend->xfer_hints(& hints);
}
if(backend->check_params){
backend->check_params(backend_options);
}
if (backend->initialize){
backend->initialize(backend_options);
}
pid = getpid();
uid = getuid();