00001 /******************************************************************************/ 00002 /* XrdFfsMisc.hh Miscellanies functions */ 00003 /* */ 00004 /* (c) 2010 by the Board of Trustees of the Leland Stanford, Jr., University */ 00005 /* All Rights Reserved */ 00006 /* Author: Wei Yang (SLAC National Accelerator Laboratory, 2009) */ 00007 /* Contract DE-AC02-76-SFO0515 with the Department of Energy */ 00008 /******************************************************************************/ 00009 00010 #ifdef __cplusplus 00011 extern "C" { 00012 #endif 00013 00014 #define XrdFfs_MAX_NUM_NODES 4096 /* 64*64 max number of data nodes in a cluster */ 00015 00016 char XrdFfsMisc_get_current_url(const char *oldurl, char *newurl); 00017 int XrdFfsMisc_get_all_urls(const char *oldurl, char **newurls, const int nnodes); 00018 int XrdFfsMisc_get_list_of_data_servers(char* list); 00019 void XrdFfsMisc_refresh_url_cache(const char* url); 00020 00021 void XrdFfsMisc_xrd_init(const char *rdrurl, int startQueue); 00022 00023 void XrdFfsMisc_xrd_secsss_init(); 00024 void XrdFfsMisc_xrd_secsss_register(uid_t user_uid, gid_t user_gid); 00025 void XrdFfsMisc_xrd_secsss_editurl(char *url, uid_t user_uid); 00026 00027 #ifdef __cplusplus 00028 } 00029 #endif