nfs-ganesha 1.4
|
Read the configuration file for the Cache inode initialization. More...
#include "log.h"
#include "HashData.h"
#include "HashTable.h"
#include "fsal.h"
#include "cache_inode.h"
#include "config_parsing.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <time.h>
#include <pthread.h>
#include <string.h>
Go to the source code of this file.
Read the configuration file for the Cache inode initialization.
cache_inode_read_conf.c : Read the configuration file for the Cache inode initialization.
Definition in file cache_inode_read_conf.c.
void cache_inode_expire_to_str | ( | cache_inode_expire_type_t | type, |
time_t | value, | ||
char * | out | ||
) |
Definition at line 179 of file cache_inode_read_conf.c.
void cache_inode_print_conf_gc_policy | ( | FILE * | output, |
cache_inode_gc_policy_t * | gcpolicy | ||
) |
Prints the garbage collection policy.
Prints the garbage collection policy.
[in] | output | The stream to which to print the data |
[in] | param | Structure to be printed |
Definition at line 504 of file cache_inode_read_conf.c.
void cache_inode_print_conf_hash_parameter | ( | FILE * | output, |
cache_inode_parameter_t * | param | ||
) |
Prints the garbage collection policy.
This function prints the garbage collection policy to the supplied stream descriptor.
[in] | output | A stream to which to print |
[in] | param | The structure to be printed |
Definition at line 463 of file cache_inode_read_conf.c.
void cache_inode_print_conf_parameter | ( | FILE * | output, |
cache_inode_parameter_t * | param | ||
) |
Prints cache inode configuration.
Prints the cache inode configuration to the supplied stream.
[in] | output | A stream to which to print the data |
[in] | param | structure to be printed |
Definition at line 481 of file cache_inode_read_conf.c.
cache_inode_status_t cache_inode_read_conf_gc_policy | ( | config_file_t | config, |
cache_inode_gc_policy_t * | policy | ||
) |
Read the garbage collection policy.
This function reads the garbage collection policy from the configuration file.
[in] | config | Configuration file handle |
[out] | param | Read parameters |
CACHE_INODE_SUCCESS | on success. |
CACHE_INODE_NOT_FOUND | if stanza is not present. |
CACHE_INODE_INVALID_ARGUMENT | otherwise. |
Definition at line 347 of file cache_inode_read_conf.c.
cache_inode_status_t cache_inode_read_conf_hash_parameter | ( | config_file_t | config, |
cache_inode_parameter_t * | param | ||
) |
Read the configuration for the Cache_inode hash table.
This funcion reads the configuration for the hash table used by the Cache_inode layer.
[in] | config | Configuration file handle |
[out] | param | Read parameters |
CACHE_INODE_SUCCESS | on success. |
CACHE_INODE_NOT_FOUND | if stanza is not present. |
CACHE_INODE_INVALID_ARGUMENT | otherwise. |
Definition at line 80 of file cache_inode_read_conf.c.
cache_inode_status_t cache_inode_read_conf_parameter | ( | config_file_t | config, |
cache_inode_parameter_t * | param | ||
) |
Read the configuration for the Cache inode layer.
[in] | config | Configuration file handle |
[out] | param | Read parameters |
CACHE_INODE_SUCCESS | on success. |
CACHE_INODE_NOT_FOUND | if stanza not present |
CACHE_INODE_INVALID_ARGUMENT | otherwise |
Definition at line 206 of file cache_inode_read_conf.c.
int parse_cache_expire | ( | cache_inode_expire_type_t * | type, |
time_t * | value, | ||
char * | key_value | ||
) |
Definition at line 149 of file cache_inode_read_conf.c.