Go to the source code of this file.
Defines | |
#define | XrdFfs_MAX_NUM_NODES 4096 |
Functions | |
char | XrdFfsMisc_get_current_url (const char *oldurl, char *newurl) |
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_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) |
#define XrdFfs_MAX_NUM_NODES 4096 |
Definition at line 14 of file XrdFfsMisc.hh.
Referenced by XrdFfsMisc_get_all_urls(), XrdFfsMisc_get_list_of_data_servers(), XrdFfsMisc_refresh_url_cache(), XrdFfsMisc_xrd_init(), XrdFfsPosix_deleteall(), XrdFfsPosix_readdirall(), XrdFfsPosix_renameall(), XrdFfsPosix_statall(), XrdFfsPosix_statvfsall(), and XrdFfsPosix_truncateall().
int XrdFfsMisc_get_all_urls | ( | const char * | oldurl, | |
char ** | newurls, | |||
const int | nnodes | |||
) |
Definition at line 171 of file XrdFfsMisc.cc.
References free(), i, malloc(), NULL, pthread_mutex_lock(), pthread_mutex_unlock(), strcpy(), XrdFfs_MAX_NUM_NODES, and XrdFfsMisc_get_all_urls_real().
Referenced by XrdFfsMisc_get_all_urls_real(), XrdFfsMisc_refresh_url_cache(), XrdFfsPosix_deleteall(), XrdFfsPosix_readdirall(), XrdFfsPosix_renameall(), XrdFfsPosix_statall(), XrdFfsPosix_statvfsall(), and XrdFfsPosix_truncateall().
char XrdFfsMisc_get_current_url | ( | const char * | oldurl, | |
char * | newurl | |||
) |
Definition at line 42 of file XrdFfsMisc.cc.
References XrdOucString::c_str(), XrdClientAdmin::Connect(), flags, XrdClientAbs::GetCurrentUrl(), XrdClientUrlInfo::GetUrl(), id, XrdClientUrlInfo::IsValid(), p, S_ISDIR, size, stat, XrdClientAdmin::Stat(), strcpy(), and XrdFfsPosix_stat().
int XrdFfsMisc_get_list_of_data_servers | ( | char * | list | ) |
Definition at line 205 of file XrdFfsMisc.cc.
References free(), i, malloc(), p, XrdMonCtrCollector::port, pthread_mutex_lock(), pthread_mutex_unlock(), strcat(), strcpy(), XrdFfs_MAX_NUM_NODES, and XrdFfsMisc_getNameByAddr().
Referenced by XrdFfsMisc_xrd_init().
void XrdFfsMisc_refresh_url_cache | ( | const char * | url | ) |
Definition at line 237 of file XrdFfsMisc.cc.
References free(), i, malloc(), NULL, pthread_mutex_lock(), pthread_mutex_unlock(), XrdFfs_MAX_NUM_NODES, and XrdFfsMisc_get_all_urls().
Referenced by XrdPssSys::Configure(), and XrdFfsMisc_xrd_init().
void XrdFfsMisc_xrd_init | ( | const char * | rdrurl, | |
int | startQueue | |||
) |
Definition at line 261 of file XrdFfsMisc.cc.
References EnvPutInt, free(), getenv(), i, malloc(), NAME_DATASERVERCONN_TTL, NAME_FIRSTCONNECTMAXCNT, NAME_READAHEADSIZE, NAME_READCACHESIZE, NAME_REQUESTTIMEOUT, NULL, p1(), p2(), XrdFfs_MAX_NUM_NODES, XrdFfsDent_cache_init(), XrdFfsMisc_get_list_of_data_servers(), 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 | |||
) |
Definition at line 360 of file XrdFfsMisc.cc.
References sprintf(), strcat(), and strcpy().
Referenced by XrdFfsPosix_deleteall(), XrdFfsPosix_readdirall(), XrdFfsPosix_renameall(), XrdFfsPosix_statall(), and XrdFfsPosix_truncateall().
void XrdFfsMisc_xrd_secsss_init | ( | ) |
Definition at line 331 of file XrdFfsMisc.cc.
References XrdSecsssID::idDynamic, XrdFfsMiscSssid, and XrdFfsMiscUent.
Referenced by XrdFfsMisc_xrd_init().
void XrdFfsMisc_xrd_secsss_register | ( | uid_t | user_uid, | |
gid_t | user_gid | |||
) |
Definition at line 338 of file XrdFfsMisc.cc.
References gr, XrdSecEntity::grps, XrdSecEntity::name, pthread_mutex_lock(), pthread_mutex_unlock(), passwd::pw_name, XrdSecsssID::Register(), sprintf(), XrdFfsMiscSssid, and XrdFfsMiscUent.