#include <lfc/lfc_api.h>
#include <lfc/serrno.h>
#include <Cthread_api.h>
#include <Cthread_typedef.h>
#include <regex.h>
#include <common/gfal_prototypes.h>
#include <common/gfal_types.h>
#include <common/gfal_constants.h>
#include <externals/gsimplecache/gcachemain.h>
Go to the source code of this file.
Data Structures | |
struct | _lfc_checksum |
struct | lfc_ops |
Defines | |
#define | GFAL_MAX_LFCHOST_LEN 1024 |
#define | LFC_ENV_VAR_HOST "LFC_HOST" |
Typedefs | |
typedef _lfc_checksum | lfc_checksum |
Functions | |
char * | gfal_setup_lfchost (gfal_handle handle, GError **err) |
lfc_ops * | gfal_load_lfc (const char *name, GError **err) |
int | gfal_lfc_get_errno (struct lfc_ops *ops) |
int | gfal_lfc_regex_compile (regex_t *rex, GError **err) |
char * | gfal_lfc_get_strerror (struct lfc_ops *ops) |
char * | gfal_convert_guid_to_lfn (plugin_handle handle, char *guid, GError **err) |
int | gfal_convert_guid_to_lfn_r (plugin_handle handle, const char *guid, char *buff_lfn, size_t sbuff_lfn, GError **err) |
int | gfal_lfc_statg (struct lfc_ops *ops, const char *, struct lfc_filestatg *resu, GError **err) |
int | gfal_lfc_getComment (struct lfc_ops *ops, const char *lfn, char *buff, size_t s_buff, GError **err) |
int | gfal_lfc_setComment (struct lfc_ops *ops, const char *lfn, const char *buff, size_t s_buff, GError **err) |
int | gfal_lfc_getChecksum (struct lfc_ops *ops, const char *lfn, lfc_checksum *checksum, GError **err) |
int | gfal_lfc_convert_statg (struct stat *output, struct lfc_filestatg *input, GError **err) |
int | gfal_lfc_ifce_mkdirpG (struct lfc_ops *ops, const char *path, mode_t mode, gboolean pflag, GError **err) |
char ** | gfal_lfc_getSURL (struct lfc_ops *ops, const char *path, GError **err) |
void | gfal_lfc_init_thread (struct lfc_ops *ops) |
int | gfal_lfc_startSession (struct lfc_ops *ops, GError **err) |
void | gfal_auto_maintain_session (struct lfc_ops *ops, GError **err) |
ssize_t | g_strv_catbuff (char **strv, char *buff, size_t size) |
int | gfal_lfc_convert_lstat (struct stat *output, struct lfc_filestat *input, GError **err) |
void | gfal_generate_guidG (char *buf, GError **err) |
generate an uiid string Generate a uuid string and cpy it in the buf, | |
int | gfal_lfc_set_host (const char *host, GError **err) |
char* gfal_convert_guid_to_lfn | ( | plugin_handle | handle, | |
char * | guid, | |||
GError ** | err | |||
) |
convert a guid to a lfn link with a call to the lfclib
handle | handle of the lfc plugin | |
string | of the guid | |
err | : Error report system |
int gfal_convert_guid_to_lfn_r | ( | plugin_handle | handle, | |
const char * | guid, | |||
char * | buff_lfn, | |||
size_t | sbuff_lfn, | |||
GError ** | err | |||
) |
convert a guid to a lfn link with a call to the lfclib in a reantrant( buffer mode )
handle | plugin handle | |
guid | string of the guid | |
buff_lfn | buffer for the lfn result | |
sbuff_lfn | size of the buffer | |
err | : Error report system |
void gfal_generate_guidG | ( | char * | buf, | |
GError ** | err | |||
) |
generate an uiid string Generate a uuid string and cpy it in the buf,
char** gfal_lfc_getSURL | ( | struct lfc_ops * | ops, | |
const char * | path, | |||
GError ** | err | |||
) |
return a list of surls from a getreplica request
int gfal_lfc_ifce_mkdirpG | ( | struct lfc_ops * | ops, | |
const char * | path, | |||
mode_t | mode, | |||
gboolean | pflag, | |||
GError ** | err | |||
) |
Implementation of mkdir -p call on the lfc
void gfal_lfc_init_thread | ( | struct lfc_ops * | ops | ) |
Routine for internal lfc hack, need to be call for the thread safety
struct lfc_ops* gfal_load_lfc | ( | const char * | name, | |
GError ** | err | |||
) |
load the shared library and link the symbol for the LFC usage
name | : name of the library | |
err,: | error report |
char* gfal_setup_lfchost | ( | gfal_handle | handle, | |
GError ** | err | |||
) |
setup the lfc_host correctly for the lfc calls
err | GError report system if |