IOR
Functions | Variables
aiori.c File Reference
#include <assert.h>
#include <stdbool.h>
#include "aiori.h"
Include dependency graph for aiori.c:

Go to the source code of this file.

Functions

void * airoi_update_module_options (const ior_aiori_t *backend, options_all_t *opt)
 
options_all_tairoi_create_all_module_options (option_help *global_options)
 
void aiori_supported_apis (char *APIs, char *APIs_legacy, enum bench_type type)
 
int aiori_posix_statfs (const char *path, ior_aiori_statfs_t *stat_buf, aiori_mod_opt_t *module_options)
 
int aiori_posix_mkdir (const char *path, mode_t mode, aiori_mod_opt_t *module_options)
 
int aiori_posix_rmdir (const char *path, aiori_mod_opt_t *module_options)
 
int aiori_posix_access (const char *path, int mode, aiori_mod_opt_t *module_options)
 
int aiori_posix_stat (const char *path, struct stat *buf, aiori_mod_opt_t *module_options)
 
char * aiori_get_version ()
 
const ior_aiori_taiori_select (const char *api)
 
int aiori_count (void)
 
const char * aiori_default (void)
 

Variables

ior_aiori_tavailable_aiori []
 

Function Documentation

◆ aiori_count()

int aiori_count ( void  )

Definition at line 291 of file aiori.c.

References available_aiori.

Referenced by aiori_default(), and airoi_create_all_module_options().

Here is the caller graph for this function:

◆ aiori_default()

const char* aiori_default ( void  )

Definition at line 296 of file aiori.c.

References aiori_count(), ior_aiori::name, and NULL.

Referenced by init_IOR_Param_t().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ aiori_get_version()

char* aiori_get_version ( void  )

Definition at line 232 of file aiori.c.

◆ aiori_posix_access()

int aiori_posix_access ( const char *  path,
int  mode,
aiori_mod_opt_t module_options 
)

Definition at line 222 of file aiori.c.

Referenced by aiori_select().

Here is the caller graph for this function:

◆ aiori_posix_mkdir()

int aiori_posix_mkdir ( const char *  path,
mode_t  mode,
aiori_mod_opt_t module_options 
)

Definition at line 212 of file aiori.c.

Referenced by aiori_select().

Here is the caller graph for this function:

◆ aiori_posix_rmdir()

int aiori_posix_rmdir ( const char *  path,
aiori_mod_opt_t module_options 
)

Definition at line 217 of file aiori.c.

Referenced by aiori_select().

Here is the caller graph for this function:

◆ aiori_posix_stat()

int aiori_posix_stat ( const char *  path,
struct stat *  buf,
aiori_mod_opt_t module_options 
)

Definition at line 227 of file aiori.c.

Referenced by aiori_select().

Here is the caller graph for this function:

◆ aiori_posix_statfs()

int aiori_posix_statfs ( const char *  path,
ior_aiori_statfs_t stat_buf,
aiori_mod_opt_t module_options 
)

Default statfs implementation.

Parameters
[in]pathPath to run statfs on
[out]statfs_bufAIORI statfs buffer

This function provides a AIORI statfs for POSIX-compliant filesystems. It uses statvfs is available and falls back on statfs.

Definition at line 166 of file aiori.c.

References ior_aiori_statfs::f_bfree, ior_aiori_statfs::f_blocks, ior_aiori_statfs::f_bsize, ior_aiori_statfs::f_ffree, ior_aiori_statfs::f_files, FALSE, and TRUE.

Referenced by aiori_select().

Here is the caller graph for this function:

◆ aiori_select()

const ior_aiori_t* aiori_select ( const char *  api)

Definition at line 237 of file aiori.c.

References aiori_posix_access(), aiori_posix_mkdir(), aiori_posix_rmdir(), aiori_posix_stat(), aiori_posix_statfs(), ior_aiori::name_legacy, NULL, and WARN.

Referenced by DecodeDirective(), md_workbench_run(), mdtest_run(), and updateParsedOptions().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ aiori_supported_apis()

void aiori_supported_apis ( char *  APIs,
char *  APIs_legacy,
enum bench_type  type 
)

Definition at line 127 of file aiori.c.

References available_aiori, MDTEST, and NULL.

Referenced by createGlobalOptions(), and mdtest_run().

Here is the caller graph for this function:

◆ airoi_create_all_module_options()

options_all_t* airoi_create_all_module_options ( option_help global_options)

Definition at line 107 of file aiori.c.

References aiori_count(), available_aiori, option_module::defaults, global_options, options_all_t::module_count, options_all_t::modules, NULL, option_module::options, out_logfile, and option_module::prefix.

Referenced by md_workbench_run(), mdtest_run(), and ParseCommandLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ airoi_update_module_options()

void* airoi_update_module_options ( const ior_aiori_t backend,
options_all_t opt 
)

Variable Documentation

◆ available_aiori

ior_aiori_t* available_aiori[]