nfs-ganesha 1.4
Classes | Typedefs | Enumerations | Functions

cache_content_policy.h File Reference

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)

Detailed Description

Management of the cached content caching policy layer.

Author:
Author:
deniel
Date:
Date:
2005/11/28 17:03:22
Version:
Revision:
1.4

cache_content_policy.h : Management of the cached content layer policy

Definition in file cache_content_policy.h.


Typedef Documentation


Enumeration Type Documentation

Enumerator:
CACHE_CONTENT_NO_POLICY 
CACHE_CONTENT_NOT_CACHED 
CACHE_CONTENT_FULLY_CACHED 

Definition at line 53 of file cache_content_policy.h.


Function Documentation

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.

Parameters:
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.
Returns:
CACHE_CONTENT_FULLY_CACHED if file is to be cached

Definition at line 58 of file cache_content_cache_behaviour.c.