nfs-ganesha 1.4
|
#include "fsal.h"
#include "cache_inode.h"
#include "cache_inode_lru.h"
#include "cache_inode_weakref.h"
#include "LRU_List.h"
#include "err_fsal.h"
#include "err_cache_inode.h"
#include "abstract_mem.h"
#include "cmd_tools.h"
#include "commands.h"
#include "Getopt.h"
#include <unistd.h>
#include <stdio.h>
#include <strings.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/time.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <pwd.h>
#include <ctype.h>
Go to the source code of this file.
Classes | |
struct | cmdCacheInode_thr_info__ |
Defines | |
#define | EXPORT_ID 1 |
#define | ATTR_LEN 100 |
#define | CACHE_INODE_SHELL_READDIR_SIZE 10 |
#define | MAX_GRPS 128 |
Typedefs | |
typedef struct cmdCacheInode_thr_info__ | cmdCacheInode_thr_info_t |
Functions | |
cmdCacheInode_thr_info_t * | RetrieveInitializedContext () |
void | Cache_inode_layer_SetLogLevel (int log_lvl) |
int | lru_entry_to_str (LRU_data_t data, char *str) |
int | lru_clean_entry (LRU_entry_t *entry, void *adddata) |
int | cache_solvepath (char *io_global_path, int size_global_path, char *i_spec_path, cache_entry_t *current_pentry, cache_entry_t **pnew_pentry, FILE *output) |
int | cacheinode_init (char *filename, int flag_v, FILE *output) |
int | fn_Cache_inode_cache_init (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_pwd (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_cd (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_stat (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_gc (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_ls (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_callstat (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_mkdir (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_link (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_ln (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_create (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_rename (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_unlink (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_setattr (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_access (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_data_cache (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_release_cache (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_recover_cache (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_refresh_cache (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_flush_cache (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_read (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_write (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_su (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_open_by_name (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_close (int argc, char **argv, FILE *output) |
int | fn_Cache_inode_invalidate (int argc, char **argv, FILE *output) |
Variables | |
cache_inode_client_parameter_t | cache_client_param |
cache_content_client_parameter_t | datacache_client_param |
#define ATTR_LEN 100 |
Definition at line 63 of file commands_Cache_inode.c.
#define CACHE_INODE_SHELL_READDIR_SIZE 10 |
#define EXPORT_ID 1 |
Definition at line 62 of file commands_Cache_inode.c.
#define MAX_GRPS 128 |
typedef struct cmdCacheInode_thr_info__ cmdCacheInode_thr_info_t |
void Cache_inode_layer_SetLogLevel | ( | int | log_lvl | ) |
Definition at line 282 of file commands_Cache_inode.c.
int cache_solvepath | ( | char * | io_global_path, |
int | size_global_path, | ||
char * | i_spec_path, | ||
cache_entry_t * | current_pentry, | ||
cache_entry_t ** | pnew_pentry, | ||
FILE * | output | ||
) |
Definition at line 335 of file commands_Cache_inode.c.
int cacheinode_init | ( | char * | filename, |
int | flag_v, | ||
FILE * | output | ||
) |
Definition at line 507 of file commands_Cache_inode.c.
int fn_Cache_inode_access | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
perform an access command. syntax: access [F][R][W][X] <file> example: access toto FRX
Definition at line 2786 of file commands_Cache_inode.c.
int fn_Cache_inode_cache_init | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed an init_fs command.
Definition at line 801 of file commands_Cache_inode.c.
int fn_Cache_inode_callstat | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
display statistics about FSAL calls.
Definition at line 1567 of file commands_Cache_inode.c.
int fn_Cache_inode_cd | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
change current path
Definition at line 908 of file commands_Cache_inode.c.
int fn_Cache_inode_close | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
Close an opened entry
Definition at line 4584 of file commands_Cache_inode.c.
int fn_Cache_inode_create | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed an create command.
Definition at line 2107 of file commands_Cache_inode.c.
int fn_Cache_inode_data_cache | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
cache en entry (REGULAR_FILE) in the data cache
Definition at line 2958 of file commands_Cache_inode.c.
int fn_Cache_inode_flush_cache | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
flush en entry (REGULAR_FILE) in the data cache
Definition at line 3433 of file commands_Cache_inode.c.
int fn_Cache_inode_gc | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed to a call to the garbagge collector.
Definition at line 1072 of file commands_Cache_inode.c.
int fn_Cache_inode_invalidate | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
Close an opened entry
Definition at line 4707 of file commands_Cache_inode.c.
int fn_Cache_inode_link | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed an create command.
Definition at line 1806 of file commands_Cache_inode.c.
int fn_Cache_inode_ln | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed an ln (symlink) command.
Definition at line 1951 of file commands_Cache_inode.c.
int fn_Cache_inode_ls | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed an ls command.
Definition at line 1147 of file commands_Cache_inode.c.
int fn_Cache_inode_mkdir | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed an mkdir command.
Definition at line 1617 of file commands_Cache_inode.c.
int fn_Cache_inode_open_by_name | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
change current path
Definition at line 4509 of file commands_Cache_inode.c.
int fn_Cache_inode_pwd | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
prints current path
Definition at line 881 of file commands_Cache_inode.c.
int fn_Cache_inode_read | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
Reads the content of a cached regular file
Definition at line 3553 of file commands_Cache_inode.c.
int fn_Cache_inode_recover_cache | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
recover the data cache
Definition at line 3213 of file commands_Cache_inode.c.
int fn_Cache_inode_refresh_cache | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
refresh en entry (REGULAR_FILE) in the data cache
Definition at line 3312 of file commands_Cache_inode.c.
int fn_Cache_inode_release_cache | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
cache en entry (REGULAR_FILE) in the data cache
Definition at line 3101 of file commands_Cache_inode.c.
int fn_Cache_inode_rename | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed a rename command.
Definition at line 2295 of file commands_Cache_inode.c.
int fn_Cache_inode_setattr | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
setattr
syntax of command line: setattr file_path attribute_name attribute_value
Definition at line 2599 of file commands_Cache_inode.c.
int fn_Cache_inode_stat | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed a stat command.
Definition at line 971 of file commands_Cache_inode.c.
int fn_Cache_inode_su | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
change thread contexte.
Definition at line 4414 of file commands_Cache_inode.c.
int fn_Cache_inode_unlink | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
proceed an unlink command.
Definition at line 2458 of file commands_Cache_inode.c.
int fn_Cache_inode_write | ( | int | argc, |
char ** | argv, | ||
FILE * | output | ||
) |
Reads the content of a cached regular file
Definition at line 3976 of file commands_Cache_inode.c.
int lru_clean_entry | ( | LRU_entry_t * | entry, |
void * | adddata | ||
) |
Definition at line 319 of file commands_Cache_inode.c.
int lru_entry_to_str | ( | LRU_data_t | data, |
char * | str | ||
) |
Definition at line 314 of file commands_Cache_inode.c.
cmdCacheInode_thr_info_t* RetrieveInitializedContext | ( | ) |
Definition at line 257 of file commands_Cache_inode.c.
cache_inode_client_parameter_t cache_client_param |
Global (exported) variable : init parameters for clients.
Definition at line 84 of file commands_Cache_inode.c.
Definition at line 85 of file commands_Cache_inode.c.