|
CERN org.glite.Gfal
2.0.1
|
internal header of the lfc plugin module More...
#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 struct _lfc_checksum | lfc_checksum |
Functions | |
| char * | gfal_setup_lfchost (gfal_handle handle, GError **err) |
| struct 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) |
internal header of the lfc plugin module
| 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 |
References gfal_lfc_init_thread().
Referenced by lfc_resolve_guid().
| 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 |
References gfal_lfc_init_thread().
| 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
Referenced by lfc_getSURLG().
| 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
References gfal_lfc_mkdir_rec().
| void gfal_lfc_init_thread | ( | struct lfc_ops * | ops | ) |
Routine for internal lfc hack, need to be call for the thread safety
Referenced by gfal_convert_guid_to_lfn(), gfal_convert_guid_to_lfn_r(), gfal_plugin_init(), lfc_accessG(), lfc_chmodG(), lfc_getSURLG(), lfc_getxattrG(), lfc_renameG(), lfc_statG(), and lfc_symlinkG().
| struct lfc_ops* gfal_load_lfc | ( | const char * | name, |
| GError ** | err | ||
| ) | [read] |
Resolve the lfc symbols, allow mocking load the shared library and link the symbol for the LFC usage
| name | : name of the library |
| err,: | error report |
Referenced by gfal_plugin_init().
| char* gfal_setup_lfchost | ( | gfal_handle | handle, |
| GError ** | err | ||
| ) |
setup the lfc_host correctly for the lfc calls
| err | GError report system if |
Referenced by gfal_plugin_init().
1.8.0