IOR
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <libs3.h>
#include "ior.h"
#include "aiori.h"
#include "aiori-debug.h"
#include "utilities.h"
Go to the source code of this file.
Data Structures | |
struct | s3_options_t |
struct | data_handling |
struct | S3_fd_t |
struct | s3_delete_req |
Macros | |
#define | CHECK_ERROR(p) |
Functions | |
static void | s3_xfer_hints (aiori_xfer_hint_t *params) |
static option_help * | S3_options (aiori_mod_opt_t **init_backend_options, aiori_mod_opt_t *init_values) |
static void | def_file_name (s3_options_t *o, char *out_name, char const *path) |
static void | def_bucket_name (s3_options_t *o, char *out_name, char const *path) |
static S3Status | responsePropertiesCallback (const S3ResponseProperties *properties, void *callbackData) |
static void | responseCompleteCallback (S3Status status, const S3ErrorDetails *error, void *callbackData) |
static char * | S3_getVersion () |
static void | S3_Fsync (aiori_fd_t *fd, aiori_mod_opt_t *options) |
static void | S3_Sync (aiori_mod_opt_t *options) |
static S3Status | S3ListResponseCallback (const char *ownerId, const char *ownerDisplayName, const char *bucketName, int64_t creationDateSeconds, void *callbackData) |
static int | S3_statfs (const char *path, ior_aiori_statfs_t *stat, aiori_mod_opt_t *options) |
static S3Status | S3multipart_handler (const char *upload_id, void *callbackData) |
static int | putObjectDataCallback (int bufferSize, char *buffer, void *callbackData) |
static aiori_fd_t * | S3_Create (char *path, int iorflags, aiori_mod_opt_t *options) |
static S3Status | statResponsePropertiesCallback (const S3ResponseProperties *properties, void *callbackData) |
static aiori_fd_t * | S3_Open (char *path, int flags, aiori_mod_opt_t *options) |
static S3Status | getObjectDataCallback (int bufferSize, const char *buffer, void *callbackData) |
static IOR_offset_t | S3_Xfer (int access, aiori_fd_t *afd, IOR_size_t *buffer, IOR_offset_t length, IOR_offset_t offset, aiori_mod_opt_t *options) |
static void | S3_Close (aiori_fd_t *afd, aiori_mod_opt_t *options) |
S3Status | list_delete_cb (int isTruncated, const char *nextMarker, int contentsCount, const S3ListBucketContent *contents, int commonPrefixesCount, const char **commonPrefixes, void *callbackData) |
static void | S3_Delete (char *path, aiori_mod_opt_t *options) |
static int | S3_mkdir (const char *path, mode_t mode, aiori_mod_opt_t *options) |
static int | S3_rmdir (const char *path, aiori_mod_opt_t *options) |
static int | S3_stat (const char *path, struct stat *buf, aiori_mod_opt_t *options) |
static int | S3_access (const char *path, int mode, aiori_mod_opt_t *options) |
static IOR_offset_t | S3_GetFileSize (aiori_mod_opt_t *options, char *testFileName) |
static int | S3_check_params (aiori_mod_opt_t *options) |
static void | S3_init (aiori_mod_opt_t *options) |
static void | S3_final (aiori_mod_opt_t *options) |
#define CHECK_ERROR | ( | p | ) |
Definition at line 148 of file aiori-S3-libs3.c.
Referenced by S3_Create(), S3_Delete(), S3_final(), S3_init(), S3_mkdir(), S3_Open(), S3_rmdir(), S3_statfs(), and S3_Xfer().
|
static |
Definition at line 103 of file aiori-S3-libs3.c.
References s3_options_t::bucket_per_file, and s3_options_t::bucket_prefix_cur.
Referenced by S3_mkdir(), and S3_rmdir().
|
static |
Definition at line 79 of file aiori-S3-libs3.c.
References s3_options_t::bucket_per_file, and s3_options_t::bucket_prefix_cur.
Referenced by S3_Create(), S3_Delete(), S3_Open(), and S3_stat().
|
static |
Definition at line 296 of file aiori-S3-libs3.c.
References data_handling::buf, and data_handling::size.
S3Status list_delete_cb | ( | int | isTruncated, |
const char * | nextMarker, | ||
int | contentsCount, | ||
const S3ListBucketContent * | contents, | ||
int | commonPrefixesCount, | ||
const char ** | commonPrefixes, | ||
void * | callbackData | ||
) |
Definition at line 355 of file aiori-S3-libs3.c.
References s3_options_t::bucket_context, s3_delete_req::nextMarker, NULL, s3_delete_req::o, responseHandler, s3_options_t::timeout, and s3_delete_req::truncated.
|
static |
Definition at line 209 of file aiori-S3-libs3.c.
References data_handling::buf, and data_handling::size.
|
static |
Definition at line 138 of file aiori-S3-libs3.c.
|
static |
Definition at line 133 of file aiori-S3-libs3.c.
References s3status.
|
static |
Definition at line 448 of file aiori-S3-libs3.c.
References S3_stat().
|
static |
Definition at line 461 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::host, NULL, o, s3_options_t::secret_key, and WARN.
|
static |
Definition at line 341 of file aiori-S3-libs3.c.
References S3_fd_t::object.
|
static |
Definition at line 222 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::authRegion, s3_options_t::bucket_context, s3_options_t::bucket_per_file, data_handling::buf, CHECK_ERROR, def_file_name(), s3_options_t::host, IOR_CREAT, s3_options_t::locationConstraint, NULL, o, S3_fd_t::object, putObjectHandler, responseHandler, s3_options_t::s3_protocol, s3status, s3_options_t::secret_key, and s3_options_t::timeout.
Referenced by S3_Open().
|
static |
Definition at line 369 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::authRegion, s3_options_t::bucket_context, s3_options_t::bucket_per_file, CHECK_ERROR, def_file_name(), s3_options_t::host, list_delete_handler, s3_delete_req::nextMarker, NULL, o, responseHandler, s3_options_t::s3_protocol, s3_options_t::secret_key, s3_options_t::timeout, and s3_delete_req::truncated.
|
static |
Definition at line 520 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::authRegion, s3_options_t::bucket_context, s3_options_t::bucket_per_file, CHECK_ERROR, s3_options_t::host, NULL, o, rank, responseHandler, s3_options_t::s3_protocol, s3_options_t::secret_key, and s3_options_t::timeout.
|
static |
Definition at line 161 of file aiori-S3-libs3.c.
|
static |
Definition at line 453 of file aiori-S3-libs3.c.
References S3_stat().
|
static |
Definition at line 156 of file aiori-S3-libs3.c.
|
static |
Definition at line 475 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::authRegion, s3_options_t::bucket_context, s3_options_t::bucket_per_file, s3_options_t::bucket_prefix, s3_options_t::bucket_prefix_cur, CHECK_ERROR, s3_options_t::dont_suffix, FAIL, s3_options_t::host, s3_options_t::locationConstraint, NULL, o, rank, responseHandler, s3_options_t::s3_protocol, s3_options_t::secret_key, s3_options_t::timeout, and s3_options_t::use_ssl.
|
static |
Definition at line 393 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::authRegion, s3_options_t::bucket_context, s3_options_t::bucket_per_file, data_handling::buf, CHECK_ERROR, def_bucket_name(), s3_options_t::host, s3_options_t::locationConstraint, NULL, o, putObjectHandler, responseHandler, s3_options_t::s3_compatible, s3_options_t::s3_protocol, s3_options_t::secret_key, and s3_options_t::timeout.
|
static |
Definition at line 262 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::authRegion, s3_options_t::bucket_context, s3_options_t::bucket_per_file, CHECK_ERROR, def_file_name(), s3_options_t::host, IOR_CREAT, IOR_RDWR, IOR_WRONLY, NULL, o, S3_fd_t::object, responseHandler, S3_Create(), s3_options_t::s3_protocol, s3status, s3_options_t::secret_key, statResponseHandler, s3_options_t::timeout, and WARN.
|
static |
Definition at line 49 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::authRegion, s3_options_t::bucket_per_file, s3_options_t::bucket_prefix, s3_options_t::bucket_prefix_cur, s3_options_t::dont_suffix, s3_options_t::host, LAST_OPTION, s3_options_t::locationConstraint, NULL, o, OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, s3_options_t::s3_compatible, s3_options_t::secret_key, and s3_options_t::use_ssl.
|
static |
Definition at line 413 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::authRegion, s3_options_t::bucket_context, s3_options_t::bucket_per_file, CHECK_ERROR, def_bucket_name(), s3_options_t::host, NULL, o, responseHandler, s3_options_t::s3_protocol, s3_options_t::secret_key, and s3_options_t::timeout.
|
static |
Definition at line 429 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::authRegion, s3_options_t::bucket_context, s3_options_t::bucket_per_file, def_file_name(), s3_options_t::host, NULL, o, responseHandler, s3_options_t::s3_protocol, s3status, s3_options_t::secret_key, statResponseHandler, and s3_options_t::timeout.
Referenced by S3_access(), and S3_GetFileSize().
|
static |
Definition at line 180 of file aiori-S3-libs3.c.
References s3_options_t::access_key, s3_options_t::authRegion, CHECK_ERROR, ior_aiori_statfs::f_bavail, 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, s3_options_t::host, listhandler, NULL, o, s3_options_t::s3_protocol, s3_options_t::secret_key, and s3_options_t::timeout.
|
static |
Definition at line 167 of file aiori-S3-libs3.c.
|
static |
Definition at line 308 of file aiori-S3-libs3.c.
References s3_options_t::bucket_context, s3_options_t::bucket_per_file, data_handling::buf, CHECK_ERROR, getObjectHandler, NULL, o, S3_fd_t::object, putObjectHandler, s3_options_t::s3_compatible, s3_options_t::timeout, and WRITE.
|
static |
Definition at line 26 of file aiori-S3-libs3.c.
|
static |
Definition at line 172 of file aiori-S3-libs3.c.
|
static |
Definition at line 198 of file aiori-S3-libs3.c.
|
static |
Definition at line 249 of file aiori-S3-libs3.c.
References data_handling::buf, NULL, and s3status.
|
static |
Definition at line 306 of file aiori-S3-libs3.c.
Referenced by S3_Xfer().
|
static |
Definition at line 24 of file aiori-S3-libs3.c.
|
static |
Definition at line 367 of file aiori-S3-libs3.c.
Referenced by S3_Delete().
|
static |
Definition at line 178 of file aiori-S3-libs3.c.
Referenced by S3_statfs().
|
static |
Definition at line 203 of file aiori-S3-libs3.c.
|
static |
Definition at line 220 of file aiori-S3-libs3.c.
Referenced by S3_Create(), S3_mkdir(), and S3_Xfer().
|
static |
Definition at line 154 of file aiori-S3-libs3.c.
Referenced by list_delete_cb(), S3_Create(), S3_Delete(), S3_final(), S3_init(), S3_mkdir(), S3_Open(), S3_rmdir(), and S3_stat().
ior_aiori_t S3_libS3_aiori |
Definition at line 531 of file aiori-S3-libs3.c.
|
static |
Definition at line 131 of file aiori-S3-libs3.c.
Referenced by responseCompleteCallback().
|
static |
Definition at line 130 of file aiori-S3-libs3.c.
Referenced by responseCompleteCallback(), responsePropertiesCallback(), S3_Create(), S3_Open(), S3_stat(), and statResponsePropertiesCallback().
|
static |
Definition at line 260 of file aiori-S3-libs3.c.