nfs-ganesha 1.4
|
00001 /* 00002 * vim:expandtab:shiftwidth=8:tabstop=8: 00003 * 00004 * Copyright CEA/DAM/DIF (2008) 00005 * contributeur : Philippe DENIEL philippe.deniel@cea.fr 00006 * Thomas LEIBOVICI thomas.leibovici@cea.fr 00007 * 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 3 of the License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 * 00023 * --------------------------------------- 00024 */ 00025 00037 #ifdef HAVE_CONFIG_H 00038 #include "config.h" 00039 #endif 00040 00041 #ifdef _SOLARIS 00042 #include "solaris_port.h" 00043 #endif 00044 00045 #include <stdio.h> 00046 #include <sys/socket.h> 00047 #include <netinet/in.h> 00048 #ifndef _FREEBSD 00049 #include <netinet/tcp.h> 00050 #endif /* _FREEBSD */ 00051 #include <sys/types.h> 00052 #include <ctype.h> /* for having isalnum */ 00053 #include <stdlib.h> /* for having atoi */ 00054 #include <dirent.h> /* for having MAXNAMLEN */ 00055 #include <netdb.h> 00056 #include <netinet/in.h> 00057 #include <arpa/inet.h> 00058 #include <string.h> 00059 #include <unistd.h> 00060 #include <sys/poll.h> 00061 #include <pthread.h> 00062 #include <fcntl.h> 00063 #include <sys/file.h> /* for having FNDELAY */ 00064 #include <pwd.h> 00065 00066 #include <grp.h> 00067 #include "log.h" 00068 #include "ganesha_rpc.h" 00069 #include "nfs_core.h" 00070 #include "nfs23.h" 00071 #include "nfs4.h" 00072 #include "fsal.h" 00073 #include "nfs_tools.h" 00074 #include "nfs_exports.h" 00075 #include "nfs_file_handle.h" 00076 00077 struct tcp_conn 00078 { /* kept in xprt->xp_p1 */ 00079 enum xprt_stat strm_stat; 00080 u_long x_id; 00081 XDR xdrs; 00082 char verf_body[MAX_AUTH_BYTES]; 00083 }; 00084 00085 unsigned long decimal_simple_hash_func(hash_parameter_t * p_hparam, 00086 hash_buffer_t * buffclef) 00087 { 00088 LogMajor(COMPONENT_MAIN, "ATTENTION: CALLING A DUMMY FUNCTION"); 00089 return 0; 00090 } 00091 00092 unsigned long decimal_rbt_hash_func(hash_parameter_t * p_hparam, hash_buffer_t * buffclef) 00093 { 00094 LogMajor(COMPONENT_MAIN, "ATTENTION: CALLING A DUMMY FUNCTION"); 00095 return 0; 00096 } 00097 00098 int display_cache(hash_buffer_t * pbuff, char *str) 00099 { 00100 *str = '\0'; 00101 return 0; 00102 } 00103 00104 int compare_cache(hash_buffer_t * buff1, hash_buffer_t * buff2) 00105 { 00106 return 0; 00107 } 00108 00109 int print_cache(LRU_data_t data, char *str) 00110 { 00111 return 0; 00112 } 00113 00114 int clean_cache(LRU_entry_t * pentry, void *addparam) 00115 { 00116 return 0; 00117 } /* clean_cache */ 00118 00131 int lru_inode_entry_to_str(LRU_data_t data, char *str) 00132 { 00133 return sprintf(str, "N/A "); 00134 } /* lru_inode_entry_to_str */ 00135 00148 int lru_data_entry_to_str(LRU_data_t data, char *str) 00149 { 00150 return sprintf(str, "addr=%p,len=%llu ", data.pdata, (unsigned long long)data.len); 00151 } /* lru_data_entry_to_str */ 00152 00165 int lru_inode_clean_entry(LRU_entry_t * entry, void *adddata) 00166 { 00167 return 0; 00168 } /* lru_inode_clean_entry */ 00169 00182 int lru_data_clean_entry(LRU_entry_t * entry, void *adddata) 00183 { 00184 return 0; 00185 } /* lru_data_clean_entry */