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 /* This file is part of the XRootD software suite. */ 00010 /* */ 00011 /* XRootD is free software: you can redistribute it and/or modify it under */ 00012 /* the terms of the GNU Lesser General Public License as published by the */ 00013 /* Free Software Foundation, either version 3 of the License, or (at your */ 00014 /* option) any later version. */ 00015 /* */ 00016 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */ 00017 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */ 00018 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */ 00019 /* License for more details. */ 00020 /* */ 00021 /* You should have received a copy of the GNU Lesser General Public License */ 00022 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */ 00023 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */ 00024 /* */ 00025 /* The copyright holder's institutional names and contributor's names may not */ 00026 /* be used to endorse or promote products derived from this software without */ 00027 /* specific prior written permission of the institution or contributor. */ 00028 /******************************************************************************/ 00029 00030 #ifdef __cplusplus 00031 extern "C" { 00032 #endif 00033 00034 #define XrdFfs_MAX_NUM_NODES 4096 /* 64*64 max number of data nodes in a cluster */ 00035 00036 char XrdFfsMisc_get_current_url(const char *oldurl, char *newurl); 00037 int XrdFfsMisc_get_all_urls(const char *oldurl, char **newurls, const int nnodes); 00038 int XrdFfsMisc_get_list_of_data_servers(char* list); 00039 int XrdFfsMisc_get_number_of_data_servers(); 00040 void XrdFfsMisc_refresh_url_cache(const char* url); 00041 void XrdFfsMisc_logging_url_cache(const char* url); 00042 00043 void XrdFfsMisc_xrd_init(const char *rdrurl, const char *urlcachelife, int startQueue); 00044 00045 void XrdFfsMisc_xrd_secsss_init(); 00046 void XrdFfsMisc_xrd_secsss_register(uid_t user_uid, gid_t user_gid, int *id); 00047 void XrdFfsMisc_xrd_secsss_editurl(char *url, uid_t user_uid, int *id); 00048 00049 #ifdef __cplusplus 00050 } 00051 #endif