nfs-ganesha 1.4
Functions

cache_inode_read_conf.c File Reference

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.

Functions

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.
int parse_cache_expire (cache_inode_expire_type_t *type, time_t *value, char *key_value)
void cache_inode_expire_to_str (cache_inode_expire_type_t type, time_t value, char *out)
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.
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.
void cache_inode_print_conf_hash_parameter (FILE *output, cache_inode_parameter_t *param)
 Prints the garbage collection policy.
void cache_inode_print_conf_parameter (FILE *output, cache_inode_parameter_t *param)
 Prints cache inode configuration.
void cache_inode_print_conf_gc_policy (FILE *output, cache_inode_gc_policy_t *gcpolicy)
 Prints the garbage collection policy.

Detailed Description

Read the configuration file for the Cache inode initialization.

Author:
Author:
leibovic
Date:
Date:
2006/02/16 08:21:47
Version:
Revision:
1.11

cache_inode_read_conf.c : Read the configuration file for the Cache inode initialization.

Definition in file cache_inode_read_conf.c.


Function Documentation

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.

Parameters:
[in]outputThe stream to which to print the data
[in]paramStructure 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.

Parameters:
[in]outputA stream to which to print
[in]paramThe 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.

Parameters:
[in]outputA stream to which to print the data
[in]paramstructure 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.

Parameters:
[in]configConfiguration file handle
[out]paramRead parameters
Return values:
CACHE_INODE_SUCCESSon success.
CACHE_INODE_NOT_FOUNDif stanza is not present.
CACHE_INODE_INVALID_ARGUMENTotherwise.

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.

Parameters:
[in]configConfiguration file handle
[out]paramRead parameters
Return values:
CACHE_INODE_SUCCESSon success.
CACHE_INODE_NOT_FOUNDif stanza is not present.
CACHE_INODE_INVALID_ARGUMENTotherwise.

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.

Parameters:
[in]configConfiguration file handle
[out]paramRead parameters
Return values:
CACHE_INODE_SUCCESSon success.
CACHE_INODE_NOT_FOUNDif stanza not present
CACHE_INODE_INVALID_ARGUMENTotherwise

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.