| nfs-ganesha 1.4 | 
#include <stdio.h>#include <string.h>#include <pthread.h>#include <sys/stat.h>#include <time.h>#include <stdlib.h>#include <unistd.h>#include <errno.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <netdb.h>#include <arpa/inet.h>#include <sys/wait.h>#include <signal.h>#include "nfs_core.h"#include "nfs_stat.h"#include "nfs_exports.h"#include "nodelist.h"#include "fsal.h"#include "ganesha_rpc.h"#include "abstract_mem.h"Go to the source code of this file.
| Defines | |
| #define | DEFAULT_PORT "10401" | 
| #define | BACKLOG 10 | 
| #define | CONF_STAT_EXPORTER_LABEL "STAT_EXPORTER" | 
| #define | STRCMP strcasecmp | 
| #define | EXPORT_MAX_CLIENTS 20 | 
| #define | EXPORT_MAX_CLIENTLEN 256 | 
| Functions | |
| int | stat_export_check_access (struct sockaddr_storage *pssaddr, exportlist_client_t *clients, exportlist_client_entry_t *pclient_found) | 
| int | get_stat_exporter_conf (config_file_t in_config, external_tools_parameter_t *out_parameter) | 
| int | merge_stats (nfs_request_stat_item_t *global_stat_items, nfs_request_stat_item_t **workers_stat_items, int function_index, int detail_flag) | 
| int | write_stats (char *stat_buf, int num_cmds, char **function_names, nfs_request_stat_item_t *global_stat_items, int detail_flag) | 
| int | merge_nfs_stats_by_share (char *stat_buf, nfs_stat_client_req_t *stat_client_req, nfs_worker_stat_t *global_data, nfs_worker_stat_t *workers_stat) | 
| int | merge_nfs_stats (char *stat_buf, nfs_stat_client_req_t *stat_client_req, nfs_worker_stat_t *global_data, nfs_worker_data_t *workers_data) | 
| int | process_stat_request (int new_fd) | 
| int | check_permissions () | 
| void * | stat_exporter_thread (void *UnusedArg) | 
| void * | long_processing_thread (void *UnusedArg) | 
| #define BACKLOG 10 | 
Definition at line 69 of file nfs_stat_exporter_thread.c.
| #define CONF_STAT_EXPORTER_LABEL "STAT_EXPORTER" | 
Definition at line 71 of file nfs_stat_exporter_thread.c.
| #define DEFAULT_PORT "10401" | 
Definition at line 67 of file nfs_stat_exporter_thread.c.
| #define EXPORT_MAX_CLIENTLEN 256 | 
Definition at line 76 of file nfs_stat_exporter_thread.c.
| #define EXPORT_MAX_CLIENTS 20 | 
Definition at line 75 of file nfs_stat_exporter_thread.c.
| #define STRCMP strcasecmp | 
Definition at line 72 of file nfs_stat_exporter_thread.c.
| int check_permissions | ( | ) | 
Definition at line 692 of file nfs_stat_exporter_thread.c.
| int get_stat_exporter_conf | ( | config_file_t | in_config, | 
| external_tools_parameter_t * | out_parameter | ||
| ) | 
Definition at line 253 of file nfs_stat_exporter_thread.c.
| void* long_processing_thread | ( | void * | UnusedArg | ) | 
Definition at line 791 of file nfs_stat_exporter_thread.c.
| int merge_nfs_stats | ( | char * | stat_buf, | 
| nfs_stat_client_req_t * | stat_client_req, | ||
| nfs_worker_stat_t * | global_data, | ||
| nfs_worker_data_t * | workers_data | ||
| ) | 
Definition at line 508 of file nfs_stat_exporter_thread.c.
| int merge_nfs_stats_by_share | ( | char * | stat_buf, | 
| nfs_stat_client_req_t * | stat_client_req, | ||
| nfs_worker_stat_t * | global_data, | ||
| nfs_worker_stat_t * | workers_stat | ||
| ) | 
Definition at line 422 of file nfs_stat_exporter_thread.c.
| int merge_stats | ( | nfs_request_stat_item_t * | global_stat_items, | 
| nfs_request_stat_item_t ** | workers_stat_items, | ||
| int | function_index, | ||
| int | detail_flag | ||
| ) | 
Definition at line 320 of file nfs_stat_exporter_thread.c.
| int process_stat_request | ( | int | new_fd | ) | 
Definition at line 592 of file nfs_stat_exporter_thread.c.
| int stat_export_check_access | ( | struct sockaddr_storage * | pssaddr, | 
| exportlist_client_t * | clients, | ||
| exportlist_client_entry_t * | pclient_found | ||
| ) | 
Definition at line 78 of file nfs_stat_exporter_thread.c.
| void* stat_exporter_thread | ( | void * | UnusedArg | ) | 
Definition at line 696 of file nfs_stat_exporter_thread.c.
| int write_stats | ( | char * | stat_buf, | 
| int | num_cmds, | ||
| char ** | function_names, | ||
| nfs_request_stat_item_t * | global_stat_items, | ||
| int | detail_flag | ||
| ) | 
Definition at line 373 of file nfs_stat_exporter_thread.c.
 1.7.3
 1.7.3