|
nfs-ganesha 1.4
|
Some tools very usefull in the nfs protocol implementation. More...
#include <stdio.h>#include <sys/socket.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <sys/types.h>#include <ctype.h>#include <stdlib.h>#include <dirent.h>#include <netdb.h>#include <arpa/inet.h>#include <string.h>#include <unistd.h>#include <sys/poll.h>#include <pthread.h>#include <fcntl.h>#include <sys/file.h>#include <pwd.h>#include <grp.h>#include "log.h"#include "ganesha_rpc.h"#include "nfs_core.h"#include "nfs23.h"#include "nfs4.h"#include "fsal.h"#include "nfs_tools.h"#include "nfs_exports.h"#include "nfs_file_handle.h"Go to the source code of this file.
Classes | |
| struct | tcp_conn |
Functions | |
| unsigned long | decimal_simple_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef) |
| unsigned long | decimal_rbt_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef) |
| int | display_cache (hash_buffer_t *pbuff, char *str) |
| int | compare_cache (hash_buffer_t *buff1, hash_buffer_t *buff2) |
| int | print_cache (LRU_data_t data, char *str) |
| int | clean_cache (LRU_entry_t *pentry, void *addparam) |
| int | lru_inode_entry_to_str (LRU_data_t data, char *str) |
| int | lru_data_entry_to_str (LRU_data_t data, char *str) |
| int | lru_inode_clean_entry (LRU_entry_t *entry, void *adddata) |
| int | lru_data_clean_entry (LRU_entry_t *entry, void *adddata) |
Some tools very usefull in the nfs protocol implementation.
nfs_tools.c : Some tools very usefull in the nfs protocol implementation
Some tools very usefull in the nfs protocol implementation
Definition in file nfs_tools.c.
| int clean_cache | ( | LRU_entry_t * | pentry, |
| void * | addparam | ||
| ) |
Definition at line 114 of file nfs_tools.c.
| int compare_cache | ( | hash_buffer_t * | buff1, |
| hash_buffer_t * | buff2 | ||
| ) |
Definition at line 104 of file nfs_tools.c.
| unsigned long decimal_rbt_hash_func | ( | hash_parameter_t * | p_hparam, |
| hash_buffer_t * | buffclef | ||
| ) |
Definition at line 92 of file nfs_tools.c.
| unsigned long decimal_simple_hash_func | ( | hash_parameter_t * | p_hparam, |
| hash_buffer_t * | buffclef | ||
| ) |
Definition at line 85 of file nfs_tools.c.
| int display_cache | ( | hash_buffer_t * | pbuff, |
| char * | str | ||
| ) |
Definition at line 98 of file nfs_tools.c.
| int lru_data_clean_entry | ( | LRU_entry_t * | entry, |
| void * | adddata | ||
| ) |
lru_data_clean_entry: a function used to clean up a LRU entry during cache inode gc.
a function used to clean up a LRU entry during cache inode gc.
| entry | [INOUT] the entry to be cleaned up. |
| adddata | [IN] a buffer with additional input parameters. |
Definition at line 182 of file nfs_tools.c.
| int lru_data_entry_to_str | ( | LRU_data_t | data, |
| char * | str | ||
| ) |
lru_data_entry_to_str: printing function for internal worker's LRU.
printing function for internal worker's LRU.
| data | [IN] the LRU data to be printed. |
| str | [OUT] the string result. |
Definition at line 148 of file nfs_tools.c.
| int lru_inode_clean_entry | ( | LRU_entry_t * | entry, |
| void * | adddata | ||
| ) |
lru_inode_clean_entry: a function used to clean up a LRU entry during cache inode gc.
a function used to clean up a LRU entry during cache inode gc.
| entry | [INOUT] the entry to be cleaned up. |
| adddata | [IN] a buffer with additional input parameters. |
Definition at line 165 of file nfs_tools.c.
| int lru_inode_entry_to_str | ( | LRU_data_t | data, |
| char * | str | ||
| ) |
lru_inode_entry_to_str: printing function for internal worker's LRU.
printing function for internal worker's LRU.
| data | [IN] the LRU data to be printed. |
| str | [OUT] the string result. |
Definition at line 131 of file nfs_tools.c.
| int print_cache | ( | LRU_data_t | data, |
| char * | str | ||
| ) |
Definition at line 109 of file nfs_tools.c.
1.7.3