nfs-ganesha 1.4
|
Management of the cached content caching policy layer. More...
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <time.h>
#include <pthread.h>
#include "LRU_List.h"
#include "HashData.h"
#include "HashTable.h"
#include "fsal.h"
#include "cache_inode.h"
#include "cache_content.h"
Go to the source code of this file.
Classes | |
struct | cache_content_policy_data__ |
Typedefs | |
typedef enum cache_content_caching_type__ | cache_content_caching_type_t |
typedef struct cache_content_policy_data__ | cache_content_policy_data_t |
Enumerations | |
enum | cache_content_caching_type__ { CACHE_CONTENT_NO_POLICY = 0, CACHE_CONTENT_NOT_CACHED = 1, CACHE_CONTENT_FULLY_CACHED = 2 } |
Functions | |
cache_content_caching_type_t | cache_content_cache_behaviour (cache_entry_t *pentry_inode, cache_content_policy_data_t *ppolicy_data, cache_content_client_t *pclient, cache_content_status_t *pstatus) |
Management of the cached content caching policy layer.
cache_content_policy.h : Management of the cached content layer policy
Definition in file cache_content_policy.h.
typedef enum cache_content_caching_type__ cache_content_caching_type_t |
typedef struct cache_content_policy_data__ cache_content_policy_data_t |
Definition at line 53 of file cache_content_policy.h.
cache_content_caching_type_t cache_content_cache_behaviour | ( | cache_entry_t * | pentry_inode, |
cache_content_policy_data_t * | ppolicy_data, | ||
cache_content_client_t * | pclient, | ||
cache_content_status_t * | pstatus | ||
) |
cache_content_cache_behaviour: chooses if a file is to be cached in data cache or not, basec o the caching policy.
Chooses if a file is to be cached in data cache or not, basec o the caching policy.
No lock management is done in this layer: the related pentry in the cache inode layer is locked and will prevent from concurent accesses.
pentry | [IN] entry in file content layer whose content is to be flushed. |
pclient | [IN] ressource allocated by the client for the nfs management. [OUT] returned status. |
Definition at line 58 of file cache_content_cache_behaviour.c.