|
xrootd
|
#include <string.h>#include <sys/types.h>#include <iostream>#include <libgen.h>#include <unistd.h>#include <netdb.h>#include <pwd.h>#include <grp.h>#include <time.h>#include <pthread.h>#include <syslog.h>#include "XrdClient/XrdClientUrlInfo.hh"#include "XrdClient/XrdClientEnv.hh"#include "XrdClient/XrdClientConst.hh"#include "XrdClient/XrdClient.hh"#include "XrdClient/XrdClientAdmin.hh"#include "XrdOuc/XrdOucString.hh"#include "XrdSec/XrdSecEntity.hh"#include "XrdSecsss/XrdSecsssID.hh"#include "XrdNet/XrdNetDNS.hh"#include "XrdFfs/XrdFfsDent.hh"#include "XrdFfs/XrdFfsFsinfo.hh"#include "XrdFfs/XrdFfsMisc.hh"#include "XrdFfs/XrdFfsPosix.hh"#include "XrdFfs/XrdFfsQueue.hh"
Defines | |
| #define | _FILE_OFFSET_BITS 64 |
Functions | |
| char | XrdFfsMisc_get_current_url (const char *oldurl, char *newurl) |
| uint32_t | XrdFfsMisc_ip2nl (char *ip) |
| char * | XrdFfsMisc_getNameByAddr (char *ipaddr) |
| int | XrdFfsMisc_get_all_urls_real (const char *oldurl, char **newurls, const int nnodes) |
| int | XrdFfsMisc_get_all_urls (const char *oldurl, char **newurls, const int nnodes) |
| int | XrdFfsMisc_get_list_of_data_servers (char *list) |
| void | XrdFfsMisc_refresh_url_cache (const char *url) |
| void | XrdFfsMisc_logging_url_cache (const char *url) |
| void | XrdFfsMisc_xrd_init (const char *rdrurl, int startQueue) |
| void | XrdFfsMisc_xrd_secsss_init () |
| void | XrdFfsMisc_xrd_secsss_register (uid_t user_uid, gid_t user_gid) |
| void | XrdFfsMisc_xrd_secsss_editurl (char *url, uid_t user_uid) |
Variables | |
| char | XrdFfsMiscCururl [1024] = "" |
| char * | XrdFfsMiscUrlcache [XrdFfs_MAX_NUM_NODES] |
| int | XrdFfsMiscNcachedurls = 0 |
| time_t | XrdFfsMiscUrlcachetime = 0 |
| pthread_mutex_t | XrdFfsMiscUrlcache_mutex = PTHREAD_MUTEX_INITIALIZER |
| XrdSecEntity * | XrdFfsMiscUent |
| XrdSecsssID * | XrdFfsMiscSssid |
| bool | XrdFfsMiscSecsss = false |
| pthread_mutex_t | XrdFfsMiscSecsss_mutex = PTHREAD_MUTEX_INITIALIZER |
| #define _FILE_OFFSET_BITS 64 |
| int XrdFfsMisc_get_all_urls | ( | const char * | oldurl, |
| char ** | newurls, | ||
| const int | nnodes | ||
| ) |
References XrdFfs_MAX_NUM_NODES, XrdFfsMisc_get_all_urls_real(), and XrdFfsMiscNcachedurls.
Referenced by XrdFfsMisc_get_all_urls_real(), XrdFfsMisc_refresh_url_cache(), XrdFfsPosix_deleteall(), XrdFfsPosix_readdirall(), XrdFfsPosix_renameall(), XrdFfsPosix_statall(), XrdFfsPosix_statvfsall(), and XrdFfsPosix_truncateall().
| int XrdFfsMisc_get_all_urls_real | ( | const char * | oldurl, |
| char ** | newurls, | ||
| const int | nnodes | ||
| ) |
References XrdOucString::c_str(), XrdClientAdmin::Connect(), index(), XrdClientLocate_Info::Infotype, XrdClientLocate_Info::kXrdcLocManager, XrdClientLocate_Info::kXrdcLocManagerPending, XrdClientAdmin::Locate(), XrdClientLocate_Info::Location, and XrdFfsMisc_get_all_urls().
Referenced by XrdFfsMisc_get_all_urls().
| char XrdFfsMisc_get_current_url | ( | const char * | oldurl, |
| char * | newurl | ||
| ) |
| int XrdFfsMisc_get_list_of_data_servers | ( | char * | list | ) |
References XrdNetDNS::getAddrName(), XrdMonCtrCollector::port, XrdFfs_MAX_NUM_NODES, and XrdFfsMiscNcachedurls.
Referenced by XrdFfsMisc_logging_url_cache().
| char* XrdFfsMisc_getNameByAddr | ( | char * | ipaddr | ) |
References XrdFfsMisc_ip2nl().
| uint32_t XrdFfsMisc_ip2nl | ( | char * | ip | ) |
Referenced by XrdFfsMisc_getNameByAddr().
| void XrdFfsMisc_logging_url_cache | ( | const char * | url | ) |
References XrdFfs_MAX_NUM_NODES, XrdFfsMisc_get_list_of_data_servers(), and XrdFfsMisc_refresh_url_cache().
Referenced by XrdFfsMisc_xrd_init().
| void XrdFfsMisc_refresh_url_cache | ( | const char * | url | ) |
References XrdFfs_MAX_NUM_NODES, and XrdFfsMisc_get_all_urls().
Referenced by XrdPssSys::Configure(), XrdFfsMisc_logging_url_cache(), and XrdFfsMisc_xrd_init().
| void XrdFfsMisc_xrd_init | ( | const char * | rdrurl, |
| int | startQueue | ||
| ) |
References EnvPutInt, NAME_DATASERVERCONN_TTL, NAME_FIRSTCONNECTMAXCNT, NAME_READAHEADSIZE, NAME_READCACHESIZE, NAME_REQUESTTIMEOUT, XrdFfsDent_cache_init(), XrdFfsMisc_logging_url_cache(), XrdFfsMisc_refresh_url_cache(), XrdFfsMisc_xrd_secsss_init(), XrdFfsQueue_count_workers(), and XrdFfsQueue_create_workers().
| void XrdFfsMisc_xrd_secsss_editurl | ( | char * | url, |
| uid_t | user_uid | ||
| ) |
| void XrdFfsMisc_xrd_secsss_init | ( | ) |
References XrdSecsssID::idDynamic.
Referenced by XrdFfsMisc_xrd_init().
| void XrdFfsMisc_xrd_secsss_register | ( | uid_t | user_uid, |
| gid_t | user_gid | ||
| ) |
References XrdSecEntity::grps, XrdSecEntity::name, and XrdSecsssID::Register().
| char XrdFfsMiscCururl[1024] = "" |
| int XrdFfsMiscNcachedurls = 0 |
Referenced by XrdFfsMisc_get_all_urls(), and XrdFfsMisc_get_list_of_data_servers().
| bool XrdFfsMiscSecsss = false |
| pthread_mutex_t XrdFfsMiscSecsss_mutex = PTHREAD_MUTEX_INITIALIZER |
| char* XrdFfsMiscUrlcache[XrdFfs_MAX_NUM_NODES] |
| pthread_mutex_t XrdFfsMiscUrlcache_mutex = PTHREAD_MUTEX_INITIALIZER |
| time_t XrdFfsMiscUrlcachetime = 0 |
1.7.3