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

Go to the source code of this file.

Functions

void airoi_parse_options (int argc, char **argv, option_help *global_options)
 
void aiori_supported_apis (char *APIs)
 
int aiori_posix_statfs (const char *path, ior_aiori_statfs_t *stat_buf, IOR_param_t *param)
 
int aiori_posix_mkdir (const char *path, mode_t mode, IOR_param_t *param)
 
int aiori_posix_rmdir (const char *path, IOR_param_t *param)
 
int aiori_posix_access (const char *path, int mode, IOR_param_t *param)
 
int aiori_posix_stat (const char *path, struct stat *buf, IOR_param_t *param)
 
char * aiori_get_version ()
 
void aiori_initialize ()
 
void aiori_finalize ()
 
const ior_aiori_taiori_select (const char *api)
 
int aiori_count (void)
 
const char * aiori_default (void)
 

Variables

ior_aiori_tavailable_aiori []
 
static int is_initialized = FALSE
 

Function Documentation

◆ aiori_count()

int aiori_count ( void  )

Definition at line 226 of file aiori.c.

References available_aiori.

Referenced by aiori_default(), aiori_initialize(), and airoi_parse_options().

Here is the caller graph for this function:

◆ aiori_default()

const char* aiori_default ( void  )

Definition at line 231 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_finalize()

void aiori_finalize ( )

Definition at line 173 of file aiori.c.

References FALSE, is_initialized, and NULL.

Referenced by ior_main(), and main().

Here is the caller graph for this function:

◆ aiori_get_version()

char* aiori_get_version ( )

Definition at line 149 of file aiori.c.

◆ aiori_initialize()

void aiori_initialize ( )

Definition at line 156 of file aiori.c.

References aiori_count(), ERR, is_initialized, NULL, and TRUE.

Referenced by ior_main(), and main().

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

◆ aiori_posix_access()

int aiori_posix_access ( const char *  path,
int  mode,
IOR_param_t param 
)

Definition at line 139 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,
IOR_param_t param 
)

Definition at line 129 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,
IOR_param_t param 
)

Definition at line 134 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,
IOR_param_t param 
)

Definition at line 144 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,
IOR_param_t param 
)

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 104 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, and ior_aiori_statfs::f_files.

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 184 of file aiori.c.

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

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

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)

Definition at line 84 of file aiori.c.

References available_aiori, and NULL.

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

Here is the caller graph for this function:

◆ airoi_parse_options()

void airoi_parse_options ( int  argc,
char **  argv,
option_help global_options 
)

Definition at line 64 of file aiori.c.

References aiori_count(), available_aiori, options_all::module_count, options_all::modules, NULL, option_parse(), option_module::options, and option_module::prefix.

Referenced by mdtest_run(), and ParseCommandLine().

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

Variable Documentation

◆ available_aiori

ior_aiori_t* available_aiori[]

Definition at line 30 of file aiori.c.

Referenced by aiori_count(), aiori_supported_apis(), and airoi_parse_options().

◆ is_initialized

int is_initialized = FALSE
static

Definition at line 154 of file aiori.c.

Referenced by aiori_finalize(), and aiori_initialize().