IOR
|
#include "aiori.h"
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_t * | aiori_select (const char *api) |
int | aiori_count (void) |
const char * | aiori_default (void) |
Variables | |
ior_aiori_t * | available_aiori [] |
static int | is_initialized = FALSE |
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().
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().
void aiori_finalize | ( | ) |
Definition at line 173 of file aiori.c.
References FALSE, is_initialized, and NULL.
Referenced by ior_main(), and main().
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().
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().
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().
int aiori_posix_rmdir | ( | const char * | path, |
IOR_param_t * | param | ||
) |
Definition at line 134 of file aiori.c.
Referenced by aiori_select().
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().
int aiori_posix_statfs | ( | const char * | path, |
ior_aiori_statfs_t * | stat_buf, | ||
IOR_param_t * | param | ||
) |
Default statfs implementation.
[in] | path | Path to run statfs on |
[out] | statfs_buf | AIORI 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().
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().
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().
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().
ior_aiori_t* available_aiori[] |
Definition at line 30 of file aiori.c.
Referenced by aiori_count(), aiori_supported_apis(), and airoi_parse_options().
|
static |
Definition at line 154 of file aiori.c.
Referenced by aiori_finalize(), and aiori_initialize().